forked from VKCOM/VKUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
44 lines (44 loc) · 1.21 KB
/
.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
{
"extends": ["@vkontakte/eslint-config/typescript/react"],
"parserOptions": {
"project": "./tsconfig.json",
"ecmaVersion": 2018, // Allows for the parsing of modern ECMAScript features
"sourceType": "module", // Allows for the use of imports
"ecmaFeatures": {
"jsx": true, // Allows for the parsing of JSX
"restParams": true,
"spread": true
}
},
"globals": {
"Element": true
},
"env": {
"es6": true, // Enable global es6 variables, like Set, Map, etc
"browser": true,
"node": true
},
"rules": {
"@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
}],
"no-restricted-imports": ["error", {
"patterns": ["@vkontakte/icons/dist/*"]
}]
},
"overrides": [
{
"files": ["src/**/*.{test,spec,e2e}.{ts,tsx}", "e2e/**/*", "src/testing/**/*"],
"env": {
"jest": true
}
},
{
"files": ["src/**/*.e2e.{ts,tsx}", "e2e/**/*", "src/testing/**/*"],
"extends": ["plugin:jest-playwright/recommended"]
}
]
}