-
Notifications
You must be signed in to change notification settings - Fork 11
/
.eslintrc.json
50 lines (50 loc) · 1.12 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
{
"env": {
"browser": true
},
"extends": ["airbnb", "plugin:jest/all"],
"parser": "@babel/eslint-parser",
"plugins": ["@babel", "jest"],
"rules": {
"func-names": 0,
"import/order": ["error", {
"alphabetize": {"order": "asc"},
"groups": [
["builtin", "external"],
["sibling", "parent", "internal"],
"index"
],
"newlines-between": "always",
"pathGroups": [
{
"pattern": "./*.scss",
"group": "index"
},
{
"pattern": "../*.scss",
"group": "index"
}
]
}],
"no-plusplus": 0,
"jest/prefer-expect-assertions": ["error", {
"onlyFunctionsWithAsyncKeyword": true
}],
"jest/no-hooks": ["error", {
"allow": ["beforeEach"]
}],
"lines-between-class-members": ["error", "always", {
"exceptAfterSingleLine": true
}],
"max-len": [2, 80, 4],
"no-underscore-dangle": ["error", {
"allow": ["_isMounted"]
}],
"no-unused-expressions": ["error", {
"allowTernary": true
}]
},
"settings": {
"import/resolver": "webpack"
}
}