-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
51 lines (51 loc) · 1.41 KB
/
.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"plugins": [
"react-hooks",
"react"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 10
},
"rules": {
"quotes": ["error", "single"],
"max-len": ["error", {"comments": 80, "code": 120}],
"space-infix-ops": "error",
"object-shorthand":"error",
"no-irregular-whitespace":"error",
"no-useless-escape":"error",
"block-spacing":["warn", "never"],
"semi": [2, "never"],
"no-trailing-spaces":"error",
"no-undef": "error",
"space-unary-ops":"error",
"no-mixed-spaces-and-tabs":"error",
"indent": ["error", 2],
"no-multiple-empty-lines":"error",
"object-property-newline":["error", {"allowAllPropertiesOnSameLine": true}],
"object-curly-spacing": ["error", "always"],
"object-curly-newline": ["error", {"multiline": true, "minProperties": 6}],
"prefer-template":"warn",
"arrow-spacing":"error",
"prefer-arrow-callback":"warn",
"no-duplicate-imports":"error",
"dot-location":["error", "property"],
"no-multi-spaces":"error",
"radix":"error",
"comma-dangle":["error", { "arrays": "always-multiline" }],
"prefer-const":"error",
"array-bracket-newline":"error",
"lines-between-class-members":"error",
"react/prop-types": "off"
},
"env": {
"node": true,
"jest": true,
"es6": true,
"browser": true
}
}