-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc.cjs
52 lines (47 loc) · 1.44 KB
/
.eslintrc.cjs
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
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/consistent-type-imports": "error",
"@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",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
curly: "error",
"object-shorthand": "error",
"one-var": ["error", "never"],
eqeqeq: "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",
},
};