-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
85 lines (85 loc) · 2.02 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
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
73
74
75
76
77
78
79
80
81
82
83
84
85
{
"root": true,
"env": {
"browser": true,
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:sonarjs/recommended",
"plugin:unicorn/recommended",
"airbnb-base"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"tsconfigRootDir": ".",
"sourceType": "module"
},
"processor": "disable/disable",
"plugins": [
"@typescript-eslint",
"disable",
"import",
"no-loops",
"simple-import-sort",
"sonarjs",
"unicorn"
],
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true
}
}
},
"overrides": [
{
"files": ["webpack.config.js"],
"env": {
"node": true
}
},
{
"files": ["**.js"],
"settings": {
"disable/plugins": ["@typescript-eslint"]
}
}
],
"rules": {
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-useless-constructor": "error",
"import/extensions": ["error", "never"],
"import/no-extraneous-dependencies": [
"error", {
"devDependencies": true
}
],
"import/order": "off",
"import/prefer-default-export": "off",
"no-loops/no-loops": "error",
"unicorn/no-null": "off",
"simple-import-sort/sort": "error",
"comma-dangle": ["error", "never"],
"eol-last": ["error", "never"],
"indent": ["error", 4],
"max-len": ["error", 120],
"no-empty-function": "off",
"no-trailing-spaces": "error",
"no-useless-constructor": "off",
"sort-imports": "off",
"quotes": ["error", "single"]
}
}