WebStorm(React 项目)的 ESLint 配置错误
ESLint configuration error at WebStorm (React project)
我在将 ESLint airbnb 配置连接到我的 React 应用程序时遇到问题。
我已经尝试删除 package-lock.json, node_modules and 运行 a command
npm install
WebStorm 说
ESLint: Error: .eslintrc.json >> eslint-config-airbnb-base >> MyApplicationPath\node_modules\eslint-config-airbnb-base\rules\imports.js
我的 package.json 只有 1 个 devDependency
"devDependencies": {
"eslint-config-airbnb": "^18.2.1"
}
你安装peerDependencies了吗? eslint
和 eslint-plugin-import
我在将 ESLint airbnb 配置连接到我的 React 应用程序时遇到问题。 我已经尝试删除 package-lock.json, node_modules and 运行 a command
npm install
WebStorm 说
ESLint: Error: .eslintrc.json >> eslint-config-airbnb-base >> MyApplicationPath\node_modules\eslint-config-airbnb-base\rules\imports.js
我的 package.json 只有 1 个 devDependency
"devDependencies": {
"eslint-config-airbnb": "^18.2.1"
}
你安装peerDependencies了吗? eslint
和 eslint-plugin-import