-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
66 lines (66 loc) · 1.87 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
{
"parser": "babel-eslint",
"extends": ["airbnb"],
"plugins": ["react", "jsx-a11y", "import"],
"env": {
"browser": true,
"node": true,
"es6": true,
"jest": true
},
"rules": {
"semi": ["error", "never"],
"padded-blocks": ["error", { "classes": "always" }],
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "return" }
],
"import/first": 0,
"import/no-extraneous-dependencies": 0,
"react/default-props-match-prop-types": 0,
"import/no-named-as-default": 0,
"import/prefer-default-export": 0,
"no-confusing-arrow": 0,
"no-restricted-globals": 0,
"import/namespace": [2, { "allowComputed": true }],
"react/require-default-props": 0,
"no-return-assign": 0,
"object-curly-newline": 0,
"react/forbid-prop-types": 0,
"max-len": [2, 140, 4, { "ignoreUrls": true }],
"class-methods-use-this": 0,
"jsx-a11y/click-events-have-key-events": "off",
"import/no-named-as-default-member": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"no-underscore-dangle": "off",
"no-unused-expressions": ["error", { "allowShortCircuit": true }],
"react/jsx-one-expression-per-line": "off",
"import/no-useless-path-segments": "off",
"import/order": "off",
"react/react-in-jsx-scope": "off",
"implicit-arrow-linebreak": "off",
"linebreak-style": 0,
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx"]
}
],
"react/prefer-stateless-function": "off",
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["to"],
"aspects": ["noHref", "invalidHref", "preferButton"]
}
]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".vue"]
}
}
}
}