-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
33 lines (33 loc) · 896 Bytes
/
.eslintrc.json
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
{
"env": {
"browser": true,
"es2020": true
},
"extends": [
"react-app",
"plugin:react/recommended",
"airbnb"
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": [
"react"
],
"rules": {
"linebreak-style": "off",
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
"no-unused-vars": "warn",
"no-console": "warn",
"no-restricted-syntax": "off",
"no-constant-condition": ["error", { "checkLoops": false }],
"no-underscore-dangle": "off",
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"func-names": ["warn", "as-needed"],
"no-unused-expressions": ["error", { "allowTernary": true }]
}
}