[英]ESLint configuration error at WebStorm (React project)
我在將 ESLint airbnb 配置連接到我的 React 應用程序時遇到問題。 我已經嘗試刪除 package-lock.json, node_modules 並運行命令
npm安裝
網絡風暴 說
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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.