小编Nic*_*la 的帖子

ESLint 错误 - ESLint 找不到配置“react-app”

我和我的团队使用 create-react-app bootstrap 命令启动一个新的 React 项目。我们在项目中添加了 eslint 部分,但我们遇到了以前从未发现过的恼人错误。当我们启动命令时

 yarn run lint
Run Code Online (Sandbox Code Playgroud)

这里的错误: 在此处输入图片说明

这里是 package.json:

{
  "name": "name of the app",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "jwt-decode": "^2.2.0",
    "react": "^16.12.0",
    "react-dom": "^16.12.0",
    "react-intl": "^3.12.0",
    "react-router": "^5.1.2",
    "react-router-dom": "^5.1.2",
    "react-scripts": "3.3.0",
    "redux": "^4.0.5",
    "redux-saga": "^1.1.3",
    "reselect": "^4.0.0",
    "styled-components": "^5.0.1"
  },
  "scripts": {
    "analyze": "react-app-rewired build",
    "build": "react-scripts build",
    "cypress": "./node_modules/.bin/cypress open",
    "eject": "react-scripts eject",
    "lint:write": "eslint --debug src/ --fix",
    "lint": "eslint --debug src/",
    "prettier": "prettier --write src/*.tsx src/*.ts src/**/*.tsx src/**/*.ts src/**/**/*.tsx …
Run Code Online (Sandbox Code Playgroud)

javascript typescript reactjs eslint create-react-app

9
推荐指数
2
解决办法
2万
查看次数