-
Notifications
You must be signed in to change notification settings - Fork 55
/
.eslintrc
43 lines (42 loc) · 1016 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
39
40
41
42
43
{
"env": {
"jest": true,
"browser": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"extends": ["airbnb", "plugin:@typescript-eslint/recommended", "plugin:security/recommended"],
"plugins": [
"security",
"prettier",
"@typescript-eslint"
],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"rules": {
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"@typescript-eslint/indent": [2, 2],
"jsx-a11y/label-has-associated-control": [ 2, {
"labelAttributes": ["label"],
"controlComponents": ["Field"],
"depth": 3
}]
},
"overrides": [
{
"files": ["*.js"],
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
}
]
}