This repository has been archived by the owner on Jun 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.json
146 lines (146 loc) · 4.78 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.eslint.json",
"extraFileExtensions": [".json"],
"projectFolderIgnoreList": ["build", "coverage", "node_modules", "public"]
},
"plugins": [
"@typescript-eslint",
"prettier",
"promise",
"simple-import-sort",
"sonarjs",
"sort-keys-fix",
"testing-library",
"unicorn",
"unused-imports"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/typescript",
"plugin:import/warnings",
"plugin:prettier/recommended",
"plugin:promise/recommended",
"plugin:sonarjs/recommended",
"plugin:unicorn/recommended",
"prettier"
],
"rules": {
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/no-non-null-asserted-optional-chain": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"arrow-body-style": ["error", "as-needed"],
"curly": "error",
"import/default": "error",
"import/export": "error",
"import/exports-last": "error",
"import/extensions": ["warn", "always"],
"import/first": "error",
"import/group-exports": "off",
"import/namespace": "error",
"import/no-absolute-path": "error",
"import/no-anonymous-default-export": "error",
"import/no-cycle": "warn",
"import/no-deprecated": "error",
"import/no-duplicates": "error",
"import/no-dynamic-require": "off",
"import/no-extraneous-dependencies": "error",
"import/no-mutable-exports": "error",
"import/no-namespace": "error",
"import/no-restricted-paths": "error",
"import/no-self-import": "error",
"import/no-unresolved": "off",
"import/no-unused-modules": "error",
"import/no-useless-path-segments": "error",
"import/no-webpack-loader-syntax": "error",
"import/order": "error",
"no-async-promise-executor": "off",
"no-prototype-builtins": "off",
"no-nested-ternary": "error",
"no-unneeded-ternary": "error",
"no-unused-expressions": "off",
"no-unused-vars": "off",
"prefer-const": [
"error",
{
"destructuring": "all"
}
],
"prettier/prettier": [
"off",
{
"endOfLine": "auto"
}
],
"promise/param-names": "error",
"simple-import-sort/exports": "error",
"simple-import-sort/imports": "error",
"sonarjs/cognitive-complexity": "warn",
"sonarjs/no-all-duplicated-branches": "error",
"sonarjs/no-collapsible-if": "error",
"sonarjs/no-duplicate-string": "off",
"sonarjs/no-identical-expressions": "error",
"sonarjs/no-identical-functions": "error",
"sonarjs/no-redundant-jump": "error",
"sonarjs/no-small-switch": "error",
"sonarjs/no-use-of-empty-return-value": "error",
"sort-keys-fix/sort-keys-fix": [
"error",
"asc",
{
"caseSensitive": true
}
],
"unicorn/consistent-destructuring": "warn",
"unicorn/consistent-function-scoping": "warn",
"unicorn/error-message": "warn",
"unicorn/explicit-length-check": "warn",
"unicorn/filename-case": "warn",
"unicorn/import-style": "warn",
"unicorn/no-abusive-eslint-disable": "warn",
"unicorn/no-array-callback-reference": "warn",
"unicorn/no-array-for-each": "warn",
"unicorn/no-array-method-this-argument": "warn",
"unicorn/no-array-reduce": "warn",
"unicorn/no-await-expression-member": "warn",
"unicorn/no-new-array": "warn",
"unicorn/no-null": "warn",
"unicorn/no-object-as-default-parameter": "warn",
"unicorn/no-useless-undefined": "warn",
"unicorn/prefer-array-some": "warn",
"unicorn/prefer-at": "warn",
"unicorn/prefer-module": "warn",
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-number-properties": "warn",
"unicorn/prefer-prototype-methods": "warn",
"unicorn/prefer-spread": "warn",
"unicorn/prefer-string-slice": "warn",
"unicorn/prefer-ternary": "off",
"unicorn/prefer-top-level-await": "warn",
"unicorn/prevent-abbreviations": "warn",
"unused-imports/no-unused-imports-ts": "warn",
"tsdoc/syntax": "off"
}
}