-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
80 lines (80 loc) · 2.59 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
{
"env": {
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2023,
"sourceType": "module",
"project": true
},
"plugins": ["@typescript-eslint"],
"ignorePatterns": ["node_modules", "dist"],
"rules": {
"@typescript-eslint/no-base-to-string": "off",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/prefer-nullish-coalescing": ["error", { "ignorePrimitives": { "boolean": true } }],
"@typescript-eslint/restrict-template-expressions": "off",
"curly": "error",
"default-case-last": "error",
"dot-notation": "error",
"eqeqeq": "error",
"line-comment-position": ["error", { "position": "above" }],
"no-duplicate-imports": ["error", { "includeExports": true }],
"no-else-return": ["error", { "allowElseIf": false }],
"no-empty-function": "error",
"no-implicit-coercion": "error",
"no-implied-eval": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-loss-of-precision": "error",
"no-multi-assign": "error",
"no-multi-str": "error",
"no-negated-condition": "error",
"no-nested-ternary": "error",
"no-new-wrappers": "error",
"no-restricted-globals": [
"error",
{
"name": "Buffer",
"message": "Import Buffer from `node:buffer` instead"
},
{
"name": "process",
"message": "Import process from `node:process` instead"
}
],
"no-return-await": "error",
"no-sequences": ["error", { "allowInParentheses": false }],
"no-template-curly-in-string": "error",
"no-undef-init": "error",
"no-unneeded-ternary": "error",
"no-unreachable-loop": "error",
"no-unsafe-optional-chaining": ["error", { "disallowArithmeticOperators": true }],
"no-useless-call": "error",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-return": "error",
"no-var": "error",
"object-shorthand": "error",
"one-var": ["error", "never"],
"operator-assignment": "error",
"prefer-arrow-callback": ["error", { "allowUnboundThis": false }],
"prefer-const": "error",
"prefer-destructuring": "error",
"prefer-numeric-literals": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"require-atomic-updates": "error",
"require-unicode-regexp": "error",
"unicode-bom": "error",
"yoda": "error"
}
}