-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
46 lines (46 loc) · 1.49 KB
/
.eslintrc.js
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
// eslint-disable-next-line no-undef
module.exports = {
"env": {
"browser": true,
"es2021": true,
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
],
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
},
"ecmaVersion": "latest",
"sourceType": "module",
},
"plugins": [
"react",
],
"rules": {
"semi": [ "error", "never" ],
"react/prop-types": "off",
"curly": "error",
"quotes": [ "error", "double" ],
"prefer-const": [ "error", {
"destructuring": "any",
"ignoreReadBeforeAssign": false,
} ],
"operator-assignment": [ "error", "always" ],
"prefer-destructuring": [ "error", { "object": true, "array": false } ],
"no-var": "error",
"array-bracket-spacing": [ "error", "always" ],
"arrow-spacing": [ "error", { "before": true, "after": true } ],
"block-spacing": [ "error", "always" ],
"comma-dangle": [ "error", "always-multiline" ],
"comma-spacing": [ "error", { "before": false, "after": true } ],
"indent": [ "error", 4 ],
"key-spacing": [ "error", { "afterColon": true } ],
"jsx-quotes": [ "error", "prefer-double" ],
"keyword-spacing": [ "error", { "before": true, "after": true } ],
"linebreak-style": [ "error", "unix" ],
"no-multi-spaces": "error",
"no-multiple-empty-lines": "error",
},
}