-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
36 lines (36 loc) · 1.23 KB
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
"env": {
"browser": true
},
"plugins": ["jsx-a11y", "prettier"],
"extends": [
"react-app",
"./node_modules/eslint-config-airbnb-base/rules/best-practices.js",
"./node_modules/eslint-config-airbnb-base/rules/errors.js",
"./node_modules/eslint-config-airbnb-base/rules/node.js",
"./node_modules/eslint-config-airbnb-base/rules/style.js",
"./node_modules/eslint-config-airbnb-base/rules/variables.js",
"./node_modules/eslint-config-airbnb-base/rules/es6.js",
"plugin:jsx-a11y/recommended",
"prettier"
],
"rules": {
"no-console": "warn", // Warning
"no-duplicate-case": "error", // Error
"no-extra-semi": "off", // NO error
"eqeqeq": "error", // Error
"default-case": "error", // Error
"comma-dangle": ["error", "always-multiline"],
"no-shadow": "off",
"no-plusplus": "error",
"no-nested-ternary": "off",
"no-tabs": "error",
"no-unneeded-ternary": "error",
"quotes": ["error", "single"],
"func-names": "off",
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
"react/jsx-props-no-spreading": "off",
"react/prop-types": "off",
"import/no-anonymous-default-export": "off"
}
}