-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
53 lines (53 loc) · 1.25 KB
/
.eslintrc.json
File metadata and controls
53 lines (53 loc) · 1.25 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
"env": {
"es2021": true,
"node": true,
"es6": true,
"jest": true
},
"extends": ["plugin:react/recommended", "airbnb"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["react"],
"rules": {
"react/jsx-filename-extension": [
"warn",
{
"extensions": [".jsx", ".js"]
}
],
"no-plusplus": "off",
"quotes": ["warn", "single", { "avoidEscape": true }],
"linebreak-style": ["warn", "unix"],
"semi": ["warn", "always"],
"max-len": "off", // will set to only comments later
"padded-blocks": ["warn", { "blocks": "never" }],
"indent": "off",
"react/jsx-indent": ["warn", 4],
"react/jsx-closing-bracket-location": "off",
"react/jsx-indent-props": ["warn", 4],
"arrow-parens": ["error", "as-needed"],
"no-use-before-define": ["warn", { "functions": false, "classes": true }],
"eqeqeq": ["error", "always"],
"no-shadow": [
"error",
{ "builtinGlobals": false, "hoist": "functions", "allow": [] }
]
},
"overrides": [
{
"files": ["src/**/*.js"]
}
],
"settings": {
"react": {
"version": "detect"
},
"import/extensions": [".js", ".jsx"]
}
}