-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
42 lines (42 loc) · 1.37 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
{
"extends": "airbnb",
"env": {
"browser": true
},
"globals": {
"API_URL": true,
"TANACH_URL": true,
"MISHNA_URL": true
},
"rules": {
"quotes": ["error", "single"],
"jsx-quotes": ["error", "prefer-single"],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"jsx-a11y/anchor-is-valid": [ "error", {
"components": [ "Link" ],
"specialLink": [ "to" ],
"aspects": [ "noHref", "invalidHref", "preferButton" ]
}],
"react/prop-types": "off",
"import/extensions": ["off"],
"jsx-a11y/media-has-caption": ["off"],
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"no-plusplus": ["error", {
"allowForLoopAfterthoughts": true
}],
"no-underscore-dangle": ["error", {
"allowAfterThis": true
}],
"no-multi-spaces": ["error", { "exceptions": { "VariableDeclarator": true } }],
"no-unused-vars": ["error", { "argsIgnorePattern": "[props]|[next]" }],
"react/button-has-type": [2],
"react/jsx-one-expression-per-line": [2, { "allow": "single-child" }],
"max-len": ["error", { "code": 100 }],
"object-curly-newline": ["error", {
"ObjectExpression": { "consistent": true },
"ObjectPattern": { "minProperties": 10 }
}],
"prefer-destructuring": ["error", {"object": true, "array": false}]
}
}