ESLint
Using AirB&B standard.
Install eslint-config-airbnb
npm install-peerdeps --dev eslint-config-airbnb -gInstall ESLint - Pluggable JavaScript linter
npm install -g eslintInstall ESLint extension in vscode
Navigate to project root directory and run
$ eslint --init
{
"extends": "airbnb",
"rules": {
"no-nested-ternary": 0,
"react/prefer-stateless-function": 0,
"react/jsx-filename-extension": 0,
"import/prefer-default-export": 0,
"no-use-before-define": 0,
"class-methods-use-this": 0,
"no-underscore-dangle": 0,
"indent":"off"
}
}Last updated
Was this helpful?