-
Notifications
You must be signed in to change notification settings - Fork 105
/
.eslintrc.json
76 lines (75 loc) · 2.03 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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true,
"jest/globals": true
},
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 11,
"sourceType": "module"
},
"extends": [
"eslint:recommended",
"plugin:prettier/recommended",
"plugin:react/recommended",
"plugin:import/errors",
"plugin:css-modules/recommended",
"plugin:jest/recommended"
],
"plugins": ["prettier", "promise", "css-modules", "react", "react-hooks", "jest"],
"rules": {
"class-methods-use-this": "off",
"consistent-return": "off",
"default-case": "off",
"linebreak-style": ["error", "unix"],
"max-len": [
"error",
{
"code": 100,
"ignoreComments": true
}
],
"no-await-in-loop": "off",
"no-bitwise": "off",
"no-return-assign": ["error", "except-parens"],
"no-unused-expressions": [
"error",
{
"allowShortCircuit": true
}
],
"no-param-reassign": "off",
"no-plusplus": "off",
"no-shadow": "off",
"no-underscore-dangle": "off",
"one-var-declaration-per-line": ["error", "initializations"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"strict": "off",
"css-modules/no-unused-class": "off",
"import/extensions": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"import/prefer-default-export": "off",
"no-restricted-syntax": "off",
"prettier/prettier": "error",
"react/destructuring-assignment": "off",
"react/forbid-prop-types": "off",
"react/jsx-filename-extension": "off",
"react/jsx-props-no-spreading": "off",
"react/state-in-constructor": "off",
"react/static-property-placement": ["error", "static public field"],
"react/no-array-index-key": "off",
"react/no-multi-comp": "off",
"react/prop-types": "off",
"react/require-default-props": "off",
"react/sort-comp": "off"
}
}