forked from MikeyParton/react-speech-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
47 lines (47 loc) · 1.04 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
{
"globals": {
"document": true,
"window": true
},
"env": {
"jest/globals": true
},
"extends": ["airbnb", "plugin:prettier/recommended"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true,
"es6": true
},
"sourceType": "module"
},
"plugins": ["babel", "jest", "react", "prettier"],
"rules": {
"prettier/prettier": "error",
"object-curly-newline": "off",
"jsx-a11y/label-has-associated-control": [
"error",
{
"labelComponents": [],
"labelAttributes": [],
"controlComponents": [],
"assert": "either",
"depth": 25
}
],
"jsx-a11y/label-has-for": [
2,
{
"required": {
"some": ["nesting", "id"]
}
}
],
"import/no-extraneous-dependencies": [
"error",
{ "devDependencies": ["examples/src/*", "**/*.spec.js", "**/*.spec.jsx"] }
],
"import/no-unresolved": ["error", { "ignore": ["^react$"] }]
}
}