-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
98 lines (98 loc) · 2.35 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"extends": ["airbnb", "eslint:recommended"],
"globals": {
"window": true,
"fetch": true,
"navigator": true,
"document": true
},
"plugins": ["react-hooks"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 7,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"rules": {
"comma-dangle": ["error", "never"],
"object-curly-newline": ["error", { "multiline": true }],
"object-property-newline": "error",
"linebreak-style": "off",
"arrow-parens": "off",
"padded-blocks": [
"error",
{
"classes": "always"
}
],
"eqeqeq": ["error", "smart"],
"indent": [
"error",
2,
{
"MemberExpression": 0
}
],
"max-len": ["error", 175],
"new-cap": "error",
"no-undef": "error",
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"no-unused-vars": "error",
"no-loop-func": "warn",
"accessor-pairs": [
"error",
{
"setWithoutGet": true
}
],
"dot-notation": [
"error",
{
"allowPattern": "^[a-z]+(_[a-z]+)+$|^[a-z]+(-[a-z]+)+$"
}
],
"semi": [
"error",
"always",
{
"omitLastInOneLineBlock": true
}
],
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"semi-style": ["error", "last"],
"consistent-return": "error",
"default-case": "error",
"prefer-spread": "error",
"no-extra-semi": "error",
"no-await-in-loop": "off",
"no-plusplus": "off",
"no-restricted-globals": "off",
"no-bitwise": "off",
"no-nested-ternary": "off",
"no-param-reassign": "off",
"no-restricted-globals": "off",
"no-return-assign": "off",
"import/prefer-default-export": "off",
"camelcase": "off",
"react/jsx-filename-extension": "off",
"react/prefer-stateless-function": "off",
"react/forbid-prop-types": "off",
"react/jsx-props-no-spreading": "off",
"import/extensions": "off",
"class-methods-use-this": "off",
"no-underscore-dangle": "off",
"complexity": "off",
"prefer-template": "off",
"spaced-comment": "off",
"no-console": "off",
"lines-around-directive": "off",
"prefer-const": "off",
"no-restricted-syntax": "off",
"strict": "off",
"curly": "off"
}
}