65得票4回答
Eslint没有忽略node_modules文件夹

在将 Babel 从 6 升级到 7 后,我的 eslint 开始在 node_modules 中发出警告: 因此,据我理解,node_modules 文件夹未被忽略,这就是问题出现的原因。因此,通过阅读 eslint 文档: https://eslint.org/docs/user-...

58得票4回答
ESLint:解析错误:此实验性语法需要启用以下解析器插件之一:'jsx,flow,typescript'(2:9)

我正在尝试在WebStrom中使用ESLint,但它无法正常工作并显示错误信息: ``` ESLint: 解析错误:此实验性语法需要启用以下解析器插件之一:“jsx,flow,typescript”(2:9)。 ``` 这是我的 `.eslintrc` 和 `package.json` 设...

27得票12回答
错误:在“.eslintrc”中声明的解析器“babel-eslint”加载失败:在create-react-app中找不到模块“babel-eslint”。

尝试将 eslint 安装到 create-react-app 中,但在运行 linter 时出现以下错误: 这是我的.eslintrc配置文件: { "extends": ["airbnb", "prettier", "prettier/react"], "plugins":...

10得票1回答
eslint-config-standard与@babel/plugin-proposal-class-properties的配合使用

问题 我正在设置eslint以使用eslint-config-standard。 我还在使用@babel/plugin-proposal-class-properties的babel插件。 我尝试通过"eslint index.js"命令进行javascript文件的lint检查,但是出现...