-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
52 lines (52 loc) · 1.64 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
{
"extends": "airbnb",
"parser": "babel-eslint",
"plugins": [
"import",
"jsx-a11y",
"react"
],
"env": {
"browser": true,
},
"rules": {
"react/jsx-filename-extension": ["error", { "extensions": [".js"] }],
"arrow-parens": ["error", "always"],
"no-confusing-arrow": ["off"],
"padded-blocks": ["error", { "blocks": "never", "classes": "always", "switches": "never" }],
"object-curly-newline": ["error", {
"ObjectExpression": { "minProperties": 5, "multiline": true, "consistent": true },
"ObjectPattern": { "minProperties": 5, "multiline": true, "consistent": true }
}],
"function-paren-newline": ["error", "consistent"],
"no-unused-expressions": ["error", {
"allowShortCircuit": true,
"allowTernary": true
}],
"no-shadow": ["off"],
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}],
"jsx-a11y/label-has-for": ["error", { "allowChildren": true }],
"jsx-a11y/anchor-is-valid": ["error", {
"components": ["Link"],
"specialLink": ["to"],
"aspects": ["noHref", "invalidHref", "preferButton"],
}],
"import/prefer-default-export": ["off"],
"react/prefer-stateless-function": ["off"],
"react/prefer-es6-class": ["error", "always"],
"react/require-default-props": ["warn"],
"react/prop-types": ["warn"],
"react/forbid-prop-types": ["warn"]
}
}