-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.eslintrc
56 lines (56 loc) · 1.8 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
{
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true,
"mocha": true
},
"extends": "airbnb",
"rules": {
"wrap-iife": ["error", "inside"],
"camelcase": ["error", { "properties": "always" }],
"react/prop-types": [0],
"react/jsx-closing-bracket-location": [0],
"react/jsx-indent": [2, "tab"],
"react/jsx-indent-props": [2, "tab"],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"strict": [0, "global"],
"require-yield": "off",
"indent": [2, "tab", { "SwitchCase": 1, "VariableDeclarator": 1 }],
"no-tabs": 0,
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never",
}],
"import/prefer-default-export": 0,
"no-underscore-dangle": 0,
"jsx-a11y/no-static-element-interactions": 1,
"jsx-a11y/click-events-have-key-events": 1,
"jsx-a11y/anchor-is-valid": [ "error", {
"components": [ "Link" ],
"specialLink": [ "to" ],
"aspects": [ "noHref", "invalidHref", "preferButton" ]
}],
"jsx-ally/label-has-for": "off",
"arrow-body-style": 0,
"react/no-unused-state": 1,
"react/require-default-props": 0,
"no-unused-vars": 1,
"no-useless-escape": 1,
"no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"],
"react/no-multi-comp": 0,
"consistent-return": ["error", { "treatUndefinedAsUnspecified": true }],
"import/no-named-as-default": 0
},
"globals": {
"expect": true,
"jest": true
},
"plugins": [
"prettier"
]
}