-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.json
48 lines (48 loc) · 1001 Bytes
/
.eslintrc.json
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
{
"extends": [
"@vkontakte/eslint-config/typescript/react"
],
"env": {
"es6": true,
"browser": true,
"node": true
},
"parserOptions": {
"project": "./tsconfig.json",
"ecmaVersion": 2021,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"restParams": true,
"spread": true
}
},
"overrides": [
{
"files": [
"*.spec.ts",
"*.spec.tsx"
],
"env": {
"jest": true
},
"parserOptions": {
"project": "./tsconfig.test.json"
}
}
],
"rules": {
"prefer-template": "error",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/class-name-casing": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/no-unnecessary-condition": "off",
"@typescript-eslint/no-magic-numbers": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"ignoreRestSiblings": true
}
]
}
}