-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.json
109 lines (107 loc) · 3.62 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"root": true,
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/strict-type-checked",
"plugin:@typescript-eslint/stylistic-type-checked",
"plugin:import/recommended",
"plugin:import/typescript"
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": true
},
"env": {
"es2024": true
},
"plugins": ["@typescript-eslint", "import", "no-array-concat"],
"ignorePatterns": ["node_modules", "dist"],
"settings": {
"import/resolver": {
"typescript-bun": {
"alwaysTryTypes": true
}
}
},
"rules": {
"default-case-last": "error",
"eqeqeq": "error",
"func-style": ["error", "declaration"],
"grouped-accessor-pairs": ["error", "getBeforeSet"],
"logical-assignment-operators": "error",
"no-array-concat/no-array-concat": "error",
"no-constant-binary-expression": "error",
"no-control-regex": "off",
"no-irregular-whitespace": ["error", {
"skipStrings": true,
"skipComments": true,
"skipRegExps": true,
"skipTemplates": true,
"skipJSXText": true
}],
"no-negated-condition": "warn",
"no-self-compare": "error",
"no-template-curly-in-string": "warn",
"no-undef-init": "error",
"no-unmodified-loop-condition": "warn",
"no-unneeded-ternary": "error",
"no-unreachable-loop": "warn",
"no-useless-computed-key": "error",
"no-useless-concat": "error",
"no-useless-return": "error",
"no-var": "error",
"operator-assignment": "error",
"prefer-const": "error",
"prefer-exponentiation-operator": "error",
"prefer-object-spread": "error",
"prefer-regex-literals": "error",
"prefer-rest-params": "error",
"prefer-template": "warn",
"@typescript-eslint/consistent-type-exports": "error",
"@typescript-eslint/default-param-last": "error",
"@typescript-eslint/no-confusing-void-expression": "off",
"@typescript-eslint/no-loop-func": "warn",
"@typescript-eslint/no-misused-promises": ["error", { "checksVoidReturn": false }],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unnecessary-qualifier": "error",
"@typescript-eslint/no-useless-empty-export": "error",
"@typescript-eslint/parameter-properties": ["error", { "prefer": "parameter-property" }],
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/prefer-regexp-exec": "error",
"@typescript-eslint/prefer-string-starts-ends-with": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/restrict-plus-operands": ["error", {
"allowAny": true,
"allowBoolean": true,
"allowNumberAndString": true
}],
"@typescript-eslint/restrict-template-expressions": ["error", {
"allowAny": true,
"allowBoolean": true,
"allowNumber": true,
"allowNever": true
}],
"import/consistent-type-specifier-style": ["error", "prefer-top-level"],
"import/extensions": "error",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-absolute-path": "error",
"import/no-anonymous-default-export": ["warn", { "allowCallExpression": false }],
"import/no-extraneous-dependencies": ["error", {
"devDependencies": ["*.config.js", "*.config.ts"],
"includeInternal": true,
"includeTypes": true
}],
"import/no-named-default": "error",
"import/no-self-import": "error",
"import/no-useless-path-segments": ["error", { "noUselessIndex": true }],
"import/order": ["error", {
"groups": ["builtin", "external", "internal", ["parent", "sibling", "index"], "type", "unknown", "object"],
"newlines-between": "always",
"alphabetize": { "order": "asc", "orderImportKind": "asc", "caseInsensitive": true },
"warnOnUnassignedImports": true
}]
}
}