forked from sparkdesignsystem/spark-design-system
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
33 lines (33 loc) · 940 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
{
"extends": ["airbnb", "plugin:jest/recommended", "plugin:prettier/recommended"],
"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" ]
}
}]
}
}