-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path.eslintrc
38 lines (38 loc) · 997 Bytes
/
.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
{
"extends": "airbnb",
"parser": "babel-eslint",
"plugins": ["jest"],
"rules": {
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/forbid-prop-types": [1, { "forbid": ["object", "any"] }],
"class-methods-use-this": 0,
"semi": ["error", "never"],
"max-len": [
"error",
120,
2,
{
"ignoreUrls": true,
"ignoreComments": false,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
],
"import/no-unresolved": 0,
"import/no-extraneous-dependencies": 0,
"import/extensions": 0,
"import/prefer-default-export": 0,
"react/jsx-one-expression-per-line": "off",
"jsx-a11y/label-has-for": 0,
"jsx-a11y/anchor-is-valid": ["error", {
"components": []
}],
"indent": ["error", 2],
"no-console": ["error", { "allow": ["warn", "error"] }]
},
"env": {
"jest/globals": true,
"browser": true
}
}