-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
executable file
·61 lines (61 loc) · 1.85 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
{
"root": true,
"env": {
"es6": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "eslint-plugin-node"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parserOptions": {
"ecmaVersion": 2022,
"project": ["./tsconfig.json"]
},
"rules": {
"no-throw-literal": ["error"],
"linebreak-style": ["error", "unix"],
"semi": ["error", "always"],
"eqeqeq": ["error", "always"],
"curly": "error",
"quote-props": ["error", "as-needed"],
"no-empty": ["warn", { "allowEmptyCatch": false }],
"func-names": "off",
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"eol-last": "error",
"no-unneeded-ternary": "error",
"no-var": "error",
"prefer-const": "error",
"radix": "error",
"comma-dangle": ["error", "always-multiline"],
"no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1 }],
"func-name-matching": ["error", { "includeCommonJSModuleExports": false }],
"node/no-console": "off",
"node/no-process-env": "off",
"node/no-deprecated-api": "error",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/no-this-alias": "error",
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-expect-error": "allow-with-description",
"ts-ignore": "allow-with-description",
"ts-nocheck": "allow-with-description",
"ts-check": false
}
],
"@typescript-eslint/require-array-sort-compare": [
"error",
{
"ignoreStringArrays": true
}
],
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/await-thenable": "error"
}
}