This repository was archived by the owner on Dec 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.eslintrc
More file actions
59 lines (59 loc) · 1.39 KB
/
.eslintrc
File metadata and controls
59 lines (59 loc) · 1.39 KB
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
{
"parser": "babel-eslint",
"plugins": [
"react"
],
"globals": {
"GA_ACCOUNT_ID": true,
"DEBUG_MODE": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"es6": true,
"browser": true,
"node": true,
"jquery": true
},
"extends": [
"airbnb"
],
"rules": {
"import/named": 2,
"import/no-cycle": 2,
"react/jsx-filename-extension": 0,
"jsx-a11y/anchor-is-valid": [ "error", {
"components": [ "Link" ],
"specialLink": [ "to", "hrefLeft", "hrefRight" ],
"aspects": [ "noHref" ]
}],
"jsx-a11y/label-has-for": [ 2, {
"components": [ "Label" ],
"required": "id",
"allowChildren": false
}],
"indent": ["error", 4],
"react/jsx-indent": ["error", 4],
"react/destructuring-assignment": [0],
"react/jsx-indent-props": [2, "first"],
"react/prop-types": [0],
"prefer-destructuring": ["error", {
"array": false,
"object": false
}],
"react/no-unused-state": [0],
"react/no-array-index-key": [0],
"func-names": ["error", "as-needed"],
"import/no-unresolved": [
"error",
{
"ignore": [ "../../../../../../mathlive/src/" ]
}
]
}
}