-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
48 lines (48 loc) · 1.92 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
{
"root": true,
"reportUnusedDisableDirectives": true,
"parser": "@typescript-eslint/parser",
"env": { "node": true, "es6": true },
"parserOptions": {
"warnOnUnsupportedTypeScriptVersion": false,
"tsconfigRootDir": "./",
"project": ["./tsconfig.json"],
"sourceType": "module",
"ecmaVersion": 2022,
"ecmaFeatures": { "impliedStrict": true }
},
"plugins": [
"@typescript-eslint",
"deprecation",
"unicorn"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"rules": {
"deprecation/deprecation": "warn",
"unicorn/escape-case": "error",
"unicorn/number-literal-case": "error",
"unicorn/empty-brace-spaces": "warn",
"unicorn/no-for-loop": "error",
"unicorn/no-useless-spread": "error",
"unicorn/prefer-array-find": "error",
"unicorn/prefer-array-flat-map": "error",
"unicorn/prefer-at": "error",
"unicorn/prefer-negative-index": "error",
"unicorn/prefer-optional-catch-binding": "warn",
"unicorn/prefer-string-slice": "error",
"unicorn/prefer-top-level-await": "error",
"prefer-const": "off",
"prefer-object-spread": "error",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-inferrable-types": ["warn", { "ignoreParameters": true, "ignoreProperties": true }],
"@typescript-eslint/no-unused-vars": ["warn", { "vars": "all", "args": "none", "ignoreRestSiblings": false }],
"@typescript-eslint/no-misused-promises": ["error", { "checksVoidReturn": false }],
"@typescript-eslint/restrict-template-expressions": ["error", {
"allowNumber": true, "allowBoolean": true, "allowAny": false, "allowNullish": false, "allowRegExp": true
}]
}
}