-
Notifications
You must be signed in to change notification settings - Fork 73
/
.eslintrc
41 lines (41 loc) · 1.06 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
{
"extends": ["airbnb", "plugin:jest/recommended", "plugin:prettier/recommended", "prettier/react"],
"plugins": ["jest", "import", "prettier"],
"env": {
"browser": true,
"jest/globals": true
},
"rules": {
"prettier/prettier": ["error"],
"no-redeclare": "off",
"import/no-unresolved": "off",
"import/no-extraneous-dependencies": "off",
"max-len": ["error", 80, {
"ignorePattern": "^import\\s.+\\sfrom\\s.+;$",
"ignoreUrls": true
}],
"object-curly-newline": "off",
"react/require-default-props" : "off",
"react/jsx-filename-extension": "off",
"react/jsx-props-no-spreading": "off",
"jsx-a11y/label-has-associated-control": [ 2, {
"labelComponents": ["label"],
"labelAttributes": ["htmlFor"],
"controlComponents": ["input"]
}],
"jsx-a11y/label-has-for": [ 2, {
"components": [ "Label" ],
"required": {
"every": [ "id" ]
}
}]
},
"overrides": [
{
"files": ["html/tests/*.js"],
"rules": {
"global-require": "off"
}
}
]
}