What is create-react-app 's eslint rule "react-app"?

after generating react"s project structure through create-react-app, I feel that the built-in eslint rule doesn"t work because it doesn"t require even the most basic "and" whether or not the ending is needed. How can such rules be used by the team? or do you have to add rules to rules?

so if I want to change this to the airbnb rule now, how should I change it

// package.json
"eslintConfig": {
    "extends": "react-app"
  }
Mar.02,2021

npm address


//.eslintrc
{
  "extends": ["eslint:recommended", "airbnb"],
  "env": {
    "browser": true,
    "commonjs": true,
    "node": true,
    "es6": true
  },
  "parserOptions": {
    "ecmaVersion": 6
  },
  "rules": {
    "no-console": "off",
    "strict": ["error", "global"],
    "curly": "warn"
  }
}
If not, delete eslint:recommended
directly "extends": "airbnb",

Menu