-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
44 lines (44 loc) · 1.36 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"tsconfigRootDir": "."
},
"extends": [
// Базовый набор правил eslint
"eslint:recommended",
// Отключаем правила из базового набора
"plugin:@typescript-eslint/eslint-recommended",
// Базовые правила для TypeScript
"plugin:@typescript-eslint/recommended",
// Правила TS, требующие инфо о типах
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"airbnb-base",
"prettier"
],
"env": {
"node": true,
"browser": true,
"jest": true
},
"globals": {
"chrome": "readonly"
},
"plugins": ["import", "prettier", "@typescript-eslint"],
"settings": {
"import/core-modules": ["electron"]
},
"rules": {
"prettier/prettier": "error",
"no-console": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-call": "off",
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off"
}
}