-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
60 lines (60 loc) · 1.55 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
50
51
52
53
54
55
56
57
58
59
60
{
"root": true,
"parser": "@typescript-eslint/parser",
"env": {
"es6": true,
"browser": true
},
"settings": {
"react": {
"version": "17.0.1"
}
},
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended"
],
"rules": {
"semi": ["error", "always"],
"quotes": ["error", "double", { "avoidEscape": true }],
"indent": ["error", 2, { "SwitchCase": 1 }],
"prefer-const": "error",
"no-trailing-spaces": "error",
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", { "anonymous": "never", "named": "never", "asyncArrow": "always" }],
"padding-line-between-statements": ["error", { "blankLine": "always", "prev": "*", "next": "block-like" }],
"comma-dangle": ["error", "always-multiline"],
"max-len": ["error", {
"code": 120,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}],
"no-prototype-builtins": "off",
"react/prop-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
},
"overrides": [
{
"files": ["./scripts/*", "./__tests__/__mocks__/jest/*"],
"env": {
"node": true
},
"rules": {
"@typescript-eslint/no-var-requires": "off"
}
},
{
"files": ["./__tests__/*"],
"env": {
"jest": true
}
}
]
}