-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy path.eslintrc.json
71 lines (71 loc) · 1.79 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
{
"env": {
"browser": true
},
"extends": ["airbnb"],
"parser": "@babel/eslint-parser",
"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"
},
{
"pattern": "@/images/*.png",
"group": "index"
},
{
"pattern": "@/images/*.svg",
"group": "index"
}
],
"pathGroupsExcludedImportTypes": ["builtin", "external"]
}],
"jsx-a11y/anchor-is-valid": ["error", {
"components": ["Link"],
"specialLink": ["to"],
"aspects": ["noHref", "invalidHref", "preferButton"]
}],
"jsx-a11y/click-events-have-key-events": [1],
"jsx-a11y/label-has-associated-control": "off",
"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
}],
"no-console": "error",
"react/destructuring-assignment": "off",
"react/jsx-one-expression-per-line": "off",
"react/forbid-prop-types": [2, { "forbid": ["any"] }],
"react/jsx-props-no-spreading": "off",
"react/static-property-placement": ["off", "property assignment"]
},
"settings": {
"import/resolver": {
"alias": {
"map": [
["@", "./src"]
],
"extensions": [".js", ".jsx", ".png", "svg"]
}
}
}
}