-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
72 lines (72 loc) · 1.78 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
61
62
63
64
65
66
67
68
69
70
71
72
{
"parser": "@typescript-eslint/parser",
"extends": [
"standard-react",
"eslint:recommended",
"plugin:unicorn/recommended",
"plugin:jest/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"airbnb-typescript",
"prettier"
],
"plugins": [
"unicorn",
"import",
"jest",
"@typescript-eslint",
"react-hooks",
"prettier"
],
"env": {
"browser": true,
"es6": true
},
"root": true,
"parserOptions": {
"project": "tsconfig.json",
"tsconfigRootDir": ".",
"ecmaVersion": 2021,
"sourceType": "module"
},
"settings": {
"react": {
"version": "16"
}
},
"rules": {
"unicorn/no-null": 0,
"unicorn/prevent-abbreviations": 0,
"unicorn/filename-case": 0,
"unicorn/no-array-reduce": 0,
"unicorn/no-array-for-each": 0,
"prettier/prettier": "error",
"@typescript-eslint/no-unused-vars": [ 2, { "args": "none" } ],
"react/no-array-index-key": 0,
"react/jsx-filename-extension": [0],
"@typescript-eslint/no-explicit-any": 0,
"unicorn/prefer-node-protocol": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"import/order": ["error", {
"newlines-between": "always",
"groups": [
["builtin", "external"],
["internal", "parent"],
["sibling", "index"],
"object",
"type"
]
}],
"unicorn/no-for-loop": 0,
"jest/no-commented-out-tests": 0,
// Сломанное правило
"unicorn/expiring-todo-comments": 0,
// Временно отключаю
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/no-namespace": 0,
"jest/no-mocks-import": 0
}
}