-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
49 lines (49 loc) · 1.13 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
{
"env": {
"browser": true,
"es6": true
},
"parser": "babel-eslint",
"extends": [ "airbnb", "plugin:jest/recommended" ],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": [ "react", "jsx-a11y", "import", "jest" ],
"rules": {
"react/jsx-filename-extension": [ 1, { "extensions": [ ".js", ".jsx" ] } ],
"import/no-unresolved": "off",
"jsx-a11y/label-has-for": [
2,
{
"components": [ "Label" ],
"required": {
"some": [ "nesting", "id" ]
},
"allowChildren": false
}
],
"react/prop-types": "off",
"no-console": "off",
"camelcase": "off",
"quotes": 0,
"no-underscore-dangle": "off",
"no-shadow": "warn",
"react/destructuring-assignment": "warn",
"one-var":"off",
"react/jsx-boolean-value": "warn",
"react/jsx-one-expression-per-line": "warn",
"react/prefer-stateless-function": "warn",
"linebreak-style": "off",
"react/no-unused-state": "warn",
"import/no-extraneous-dependencies": "warn",
"react/jsx-no-duplicate-props": "warn,"
}
}