-
Notifications
You must be signed in to change notification settings - Fork 32
/
.eslintrc.js
45 lines (45 loc) · 1.34 KB
/
.eslintrc.js
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
module.exports = {
parserOptions: {
ecmaVersion: 2020,
sourceType: "module"
},
env: {
browser: true,
node: true,
es6: true
},
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "simple-import-sort", "import"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:sonarjs/recommended",
"plugin:unicorn/recommended",
"prettier"
],
rules: {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-var-requires": "off",
eqeqeq: "warn",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"no-console": "off",
"object-shorthand": "error",
"simple-import-sort/exports": "error",
"simple-import-sort/imports": "error",
"sonarjs/no-unused-collection": "off",
"unicorn/filename-case": "off",
"unicorn/no-array-callback-reference": "off",
"unicorn/no-array-for-each": "warn",
"unicorn/no-array-reduce": "off",
"unicorn/no-null": "off",
"unicorn/prefer-module": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-spread": "off",
"unicorn/prefer-switch": "off",
"unicorn/prevent-abbreviations": "off"
}
};