具有vue vuex模板的vue cli项目中的ESLint错误消息模块生成文件

时间:2020-07-27 01:37:40

标签: javascript vue.js eslint

安装依赖项后,出现此错误

    Module build failed (from ./node_modules/eslint-loader/index.js):
Error: No ESLint configuration found in C:\my_project\src.
    at CascadingConfigArrayFactory._finalizeConfigArray (C:\my_project\node_modules\eslint\lib\cli-engine\cascading-config-array-factory.js:479:19)
    at CascadingConfigArrayFactory.getConfigArrayForFile (C:\my_project\node_modules\eslint\lib\cli-engine\cascading-config-array-factory.js:275:21)
    at CLIEngine.isPathIgnored (C:\my_project\node_modules\eslint\lib\cli-engine\cli-engine.js:953:18)
    at CLIEngine.executeOnText (C:\my_project\node_modules\eslint\lib\cli-engine\cli-engine.js:864:38)
    at lint (C:\my_project\node_modules\eslint-loader\index.js:278:17)
    at transform (C:\my_project\node_modules\eslint-loader\index.js:252:18)
    at C:\my_project\node_modules\loader-fs-cache\index.js:127:18
    at ReadFileContext.callback (C:\my_project\node_modules\loader-fs-cache\index.js:31:14)
    at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:239:13)

You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.

我想解释一下此ESLint配置如何工作。只需安装为非高级依赖项即可。

0 个答案:

没有答案