This repository has been archived by the owner on Dec 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
98 lines (98 loc) · 2.55 KB
/
.eslintrc
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
{
"parser": "@babel/eslint-parser",
"extends": ["standard", "plugin:react/recommended", "prettier"],
"plugins": [
"babel",
"react",
"promise",
"import",
"chai-friendly",
"import",
"monorepo",
"jest",
"react-hooks",
"unused-imports"
],
"settings": {
"react": {
"version": "detect"
}
},
"env": {
"browser": true,
"jest/globals": true
},
"globals": {
"__CI__": false,
"__DEV__": false,
"__PROD__": false,
"__BACKEND_URL__": false,
"__PACKAGE__": false,
"__PACKAGE_NAME__": false,
"__webpack_public_path__": true,
"__NO_MOCK__": false,
"test": false,
"it": false,
"expect": false,
"jestExpect": false,
"describe": false,
"sinon": false,
"beforeAll": false,
"beforeEach": false,
"afterAll": false,
"afterEach": false
},
"rules": {
"curly": [2, "all"],
"brace-style": [2, "1tbs"],
"key-spacing": [2, {"beforeColon": false, "afterColon": true, "mode": "strict"}],
"semi": [2, "never"],
"max-len": ["error", {"code": 120, "ignoreUrls": true}],
"arrow-parens": [2, "as-needed"],
"object-curly-spacing": [2, "never"],
"no-var": 2,
"prefer-const": 2,
"no-trailing-spaces": [2, {"skipBlankLines": true}],
"generator-star-spacing": [2, {"before": false, "after": true}],
"no-console": 2,
"react/jsx-no-bind": [2, {"allowArrowFunctions": true, "allowBind": true}],
"react/display-name": 0,
"jsx-quotes": [2, "prefer-double"],
"react-hooks/rules-of-hooks": 2,
"react-hooks/exhaustive-deps": 2,
"no-nested-ternary": 2,
"no-unused-expressions": 0, // "no-unused-expressions" is included with "chai-friendly/no-unused-expressions"
"chai-friendly/no-unused-expressions": [2, {"allowTaggedTemplates": true}],
"import/default": 2,
"import/no-duplicates": 2,
"import/order": [
2,
{
"groups": ["builtin", "external", ["sibling", "parent", "index"]],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"import/first": 2,
"import/no-webpack-loader-syntax": 0,
"monorepo/no-relative-import": 2,
"prefer-regex-literals": 0,
"eol-last": 2,
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off",
"unused-imports/no-unused-imports": "error",
"no-shadow": "error",
"default-param-last": "error"
},
"overrides": [
{
"files": ["**/reducer.js"],
"rules": {
"default-param-last": "off"
}
}
]
}