@luludev/configs 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -0
- package/dist/oxfmt.d.ts +7 -0
- package/dist/oxfmt.js +14 -0
- package/dist/oxfmt.js.map +1 -0
- package/dist/oxlint/common.d.ts +7 -0
- package/dist/oxlint/common.js +240 -0
- package/dist/oxlint/common.js.map +1 -0
- package/dist/oxlint/react.d.ts +7 -0
- package/dist/oxlint/react.js +45 -0
- package/dist/oxlint/react.js.map +1 -0
- package/dist/oxlint/vitest.d.ts +7 -0
- package/dist/oxlint/vitest.js +19 -0
- package/dist/oxlint/vitest.js.map +1 -0
- package/dist/utils.d.ts +2 -0
- package/dist/utils.js +1599 -0
- package/dist/utils.js.map +1 -0
- package/package.json +48 -0
package/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# lulu configs
|
|
2
|
+
|
|
3
|
+
**warning:** pedantic and opinionated
|
|
4
|
+
|
|
5
|
+
## oxlint
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
// oxlint.config.ts
|
|
9
|
+
import { defineConfig } from "oxlint";
|
|
10
|
+
|
|
11
|
+
import { default as common } from "@luludev/configs/oxlint/common";
|
|
12
|
+
// import { default as react } from "@luludev/configs/oxlint/react";
|
|
13
|
+
// import { default as vitest } from "@luludev/configs/oxlint/vitest";
|
|
14
|
+
|
|
15
|
+
export default defineConfig({
|
|
16
|
+
extends: [common],
|
|
17
|
+
});
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## oxfmt
|
|
21
|
+
|
|
22
|
+
```ts
|
|
23
|
+
import { defineConfig } from "oxfmt";
|
|
24
|
+
import { default as config } from "@luludev/configs/oxfmt";
|
|
25
|
+
|
|
26
|
+
export default defineConfig({
|
|
27
|
+
...config,
|
|
28
|
+
});
|
|
29
|
+
```
|
package/dist/oxfmt.d.ts
ADDED
package/dist/oxfmt.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//#region src/oxfmt.ts
|
|
2
|
+
const config = {
|
|
3
|
+
sortImports: { newlinesBetween: false },
|
|
4
|
+
sortTailwindcss: { functions: [
|
|
5
|
+
"clsx",
|
|
6
|
+
"cn",
|
|
7
|
+
"cva",
|
|
8
|
+
"twMerge"
|
|
9
|
+
] }
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { config as default };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=oxfmt.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oxfmt.js","names":[],"sources":["../src/oxfmt.ts"],"sourcesContent":["import type { OxfmtConfig } from \"oxfmt\";\n\nconst config: OxfmtConfig = {\n sortImports: { newlinesBetween: false },\n sortTailwindcss: { functions: [\"clsx\", \"cn\", \"cva\", \"twMerge\"] },\n} satisfies OxfmtConfig;\n\nexport default config;\n"],"mappings":";AAEA,MAAM,SAAsB;CAC1B,aAAa,EAAE,iBAAiB,MAAM;CACtC,iBAAiB,EAAE,WAAW;EAAC;EAAQ;EAAM;EAAO;CAAS,EAAE;AACjE"}
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
//#region src/oxlint/common.ts
|
|
2
|
+
const config = {
|
|
3
|
+
options: {
|
|
4
|
+
typeAware: true,
|
|
5
|
+
typeCheck: true,
|
|
6
|
+
reportUnusedDisableDirectives: "warn"
|
|
7
|
+
},
|
|
8
|
+
plugins: [
|
|
9
|
+
"oxc",
|
|
10
|
+
"eslint",
|
|
11
|
+
"unicorn",
|
|
12
|
+
"typescript",
|
|
13
|
+
"import"
|
|
14
|
+
],
|
|
15
|
+
rules: {
|
|
16
|
+
"oxc/approx-constant": "warn",
|
|
17
|
+
"oxc/bad-bitwise-operator": "warn",
|
|
18
|
+
"oxc/branches-sharing-code": "warn",
|
|
19
|
+
"oxc/misrefactored-assign-op": "warn",
|
|
20
|
+
"oxc/no-accumulating-spread": "warn",
|
|
21
|
+
"oxc/no-barrel-file": "warn",
|
|
22
|
+
"oxc/no-const-enum": "error",
|
|
23
|
+
"oxc/no-map-spread": "warn",
|
|
24
|
+
"oxc/no-this-in-exported-function": "warn",
|
|
25
|
+
"accessor-pairs": "error",
|
|
26
|
+
"array-callback-return": "warn",
|
|
27
|
+
"default-case-last": "error",
|
|
28
|
+
"default-param-last": "error",
|
|
29
|
+
eqeqeq: "error",
|
|
30
|
+
"func-names": "warn",
|
|
31
|
+
"grouped-accessor-pairs": "warn",
|
|
32
|
+
"new-cap": "warn",
|
|
33
|
+
"no-array-constructor": "warn",
|
|
34
|
+
"no-await-in-loop": "warn",
|
|
35
|
+
"no-case-declarations": "warn",
|
|
36
|
+
"no-constructor-return": "warn",
|
|
37
|
+
"no-duplicate-imports": ["warn", { allowSeparateTypeImports: true }],
|
|
38
|
+
"no-else-return": "warn",
|
|
39
|
+
"no-empty": "error",
|
|
40
|
+
"no-empty-function": "error",
|
|
41
|
+
"no-extend-native": "error",
|
|
42
|
+
"no-extra-bind": "warn",
|
|
43
|
+
"no-fallthrough": "warn",
|
|
44
|
+
"no-implicit-coercion": "warn",
|
|
45
|
+
"no-labels": "error",
|
|
46
|
+
"no-lonely-if": "warn",
|
|
47
|
+
"no-loop-func": "warn",
|
|
48
|
+
"no-multi-assign": "warn",
|
|
49
|
+
"no-multi-str": "error",
|
|
50
|
+
"no-new": "warn",
|
|
51
|
+
"no-new-func": "warn",
|
|
52
|
+
"no-object-constructor": "warn",
|
|
53
|
+
"no-param-reassign": "warn",
|
|
54
|
+
"no-promise-executor-return": "warn",
|
|
55
|
+
"no-proto": "error",
|
|
56
|
+
"no-return-assign": "warn",
|
|
57
|
+
"no-script-url": "error",
|
|
58
|
+
"no-self-compare": "warn",
|
|
59
|
+
"no-sequences": "error",
|
|
60
|
+
"no-template-curly-in-string": "warn",
|
|
61
|
+
"no-underscore-dangle": "warn",
|
|
62
|
+
"no-unmodified-loop-condition": "warn",
|
|
63
|
+
"no-unneeded-ternary": "warn",
|
|
64
|
+
"no-use-before-define": "warn",
|
|
65
|
+
"no-useless-assignment": "warn",
|
|
66
|
+
"no-useless-call": "error",
|
|
67
|
+
"no-useless-computed-key": "error",
|
|
68
|
+
"no-useless-concat": "error",
|
|
69
|
+
"no-useless-constructor": "warn",
|
|
70
|
+
"no-useless-return": "warn",
|
|
71
|
+
"no-var": "error",
|
|
72
|
+
"no-warning-comments": "warn",
|
|
73
|
+
"operator-assignment": "warn",
|
|
74
|
+
"prefer-arrow-callback": "warn",
|
|
75
|
+
"prefer-const": "warn",
|
|
76
|
+
"prefer-numeric-literals": "error",
|
|
77
|
+
"prefer-object-has-own": "warn",
|
|
78
|
+
"prefer-object-spread": "warn",
|
|
79
|
+
"prefer-rest-params": "error",
|
|
80
|
+
"prefer-spread": "warn",
|
|
81
|
+
"preserve-caught-error": "warn",
|
|
82
|
+
radix: "warn",
|
|
83
|
+
"symbol-description": "error",
|
|
84
|
+
"unicode-bom": "error",
|
|
85
|
+
yoda: "warn",
|
|
86
|
+
"unicorn/catch-error-name": "error",
|
|
87
|
+
"unicorn/consistent-date-clone": "warn",
|
|
88
|
+
"unicorn/consistent-function-scoping": "warn",
|
|
89
|
+
"unicorn/consistent-template-literal-escape": "error",
|
|
90
|
+
"unicorn/custom-error-definition": "warn",
|
|
91
|
+
"unicorn/error-message": "error",
|
|
92
|
+
"unicorn/explicit-length-check": "warn",
|
|
93
|
+
"unicorn/new-for-builtins": "warn",
|
|
94
|
+
"unicorn/no-abusive-eslint-disable": "error",
|
|
95
|
+
"unicorn/no-accessor-recursion": "warn",
|
|
96
|
+
"unicorn/no-array-for-each": "warn",
|
|
97
|
+
"unicorn/no-array-method-this-argument": "warn",
|
|
98
|
+
"unicorn/no-await-expression-member": "error",
|
|
99
|
+
"unicorn/no-console-spaces": "warn",
|
|
100
|
+
"unicorn/no-document-cookie": "error",
|
|
101
|
+
"unicorn/no-immediate-mutation": "warn",
|
|
102
|
+
"unicorn/no-instanceof-builtins": "warn",
|
|
103
|
+
"unicorn/no-length-as-slice-end": "warn",
|
|
104
|
+
"unicorn/no-lonely-if": "error",
|
|
105
|
+
"unicorn/no-magic-array-flat-depth": "warn",
|
|
106
|
+
"unicorn/no-negation-in-equality-check": "warn",
|
|
107
|
+
"unicorn/no-new-buffer": "error",
|
|
108
|
+
"unicorn/no-object-as-default-parameter": "error",
|
|
109
|
+
"unicorn/no-typeof-undefined": "warn",
|
|
110
|
+
"unicorn/no-unnecessary-array-flat-depth": "warn",
|
|
111
|
+
"unicorn/no-unnecessary-array-splice-count": "warn",
|
|
112
|
+
"unicorn/no-unnecessary-slice-end": "warn",
|
|
113
|
+
"unicorn/no-useless-collection-argument": "warn",
|
|
114
|
+
"unicorn/no-useless-error-capture-stack-trace": "warn",
|
|
115
|
+
"unicorn/no-useless-iterator-to-array": "warn",
|
|
116
|
+
"unicorn/no-useless-promise-resolve-reject": "warn",
|
|
117
|
+
"unicorn/numeric-separators-style": "warn",
|
|
118
|
+
"unicorn/prefer-add-event-listener": "warn",
|
|
119
|
+
"unicorn/prefer-array-find": "warn",
|
|
120
|
+
"unicorn/prefer-array-flat": "warn",
|
|
121
|
+
"unicorn/prefer-array-flat-map": "warn",
|
|
122
|
+
"unicorn/prefer-array-index-of": "warn",
|
|
123
|
+
"unicorn/prefer-array-some": "warn",
|
|
124
|
+
"unicorn/prefer-bigint-literals": "warn",
|
|
125
|
+
"unicorn/prefer-blob-reading-methods": "warn",
|
|
126
|
+
"unicorn/prefer-classlist-toggle": "warn",
|
|
127
|
+
"unicorn/prefer-code-point": "warn",
|
|
128
|
+
"unicorn/prefer-date-now": "warn",
|
|
129
|
+
"unicorn/prefer-default-parameters": "warn",
|
|
130
|
+
"unicorn/prefer-dom-node-append": "warn",
|
|
131
|
+
"unicorn/prefer-dom-node-dataset": "warn",
|
|
132
|
+
"unicorn/prefer-dom-node-remove": "warn",
|
|
133
|
+
"unicorn/prefer-dom-node-text-content": "warn",
|
|
134
|
+
"unicorn/prefer-global-this": "warn",
|
|
135
|
+
"unicorn/prefer-includes": "warn",
|
|
136
|
+
"unicorn/prefer-keyboard-event-key": "warn",
|
|
137
|
+
"unicorn/prefer-logical-operator-over-ternary": "warn",
|
|
138
|
+
"unicorn/prefer-math-min-max": "warn",
|
|
139
|
+
"unicorn/prefer-math-trunc": "warn",
|
|
140
|
+
"unicorn/prefer-modern-dom-apis": "warn",
|
|
141
|
+
"unicorn/prefer-native-coercion-functions": "error",
|
|
142
|
+
"unicorn/prefer-negative-index": "warn",
|
|
143
|
+
"unicorn/prefer-node-protocol": "warn",
|
|
144
|
+
"unicorn/prefer-number-properties": "error",
|
|
145
|
+
"unicorn/prefer-object-from-entries": "warn",
|
|
146
|
+
"unicorn/prefer-optional-catch-binding": "warn",
|
|
147
|
+
"unicorn/prefer-query-selector": "warn",
|
|
148
|
+
"unicorn/prefer-regexp-test": "warn",
|
|
149
|
+
"unicorn/prefer-response-static-json": "warn",
|
|
150
|
+
"unicorn/prefer-string-raw": "warn",
|
|
151
|
+
"unicorn/prefer-string-replace-all": "warn",
|
|
152
|
+
"unicorn/prefer-string-slice": "warn",
|
|
153
|
+
"unicorn/prefer-string-trim-start-end": "error",
|
|
154
|
+
"unicorn/prefer-structured-clone": "warn",
|
|
155
|
+
"unicorn/prefer-ternary": "warn",
|
|
156
|
+
"unicorn/prefer-type-error": "warn",
|
|
157
|
+
"unicorn/require-array-join-separator": "warn",
|
|
158
|
+
"unicorn/require-module-attributes": "warn",
|
|
159
|
+
"unicorn/require-number-to-fixed-digits-argument": "warn",
|
|
160
|
+
"unicorn/require-post-message-target-origin": "error",
|
|
161
|
+
"unicorn/text-encoding-identifier-case": "warn",
|
|
162
|
+
"typescript/adjacent-overload-signatures": "error",
|
|
163
|
+
"typescript/array-type": "error",
|
|
164
|
+
"typescript/ban-ts-comment": "error",
|
|
165
|
+
"typescript/ban-tslint-comment": "error",
|
|
166
|
+
"typescript/consistent-generic-constructors": "error",
|
|
167
|
+
"typescript/consistent-type-assertions": "error",
|
|
168
|
+
"typescript/consistent-type-definitions": ["warn", "type"],
|
|
169
|
+
"typescript/consistent-type-exports": "error",
|
|
170
|
+
"typescript/consistent-type-imports": "error",
|
|
171
|
+
"typescript/dot-notation": "warn",
|
|
172
|
+
"typescript/no-confusing-non-null-assertion": "warn",
|
|
173
|
+
"typescript/no-confusing-void-expression": "warn",
|
|
174
|
+
"typescript/no-deprecated": "warn",
|
|
175
|
+
"typescript/no-dynamic-delete": "warn",
|
|
176
|
+
"typescript/no-empty-interface": "warn",
|
|
177
|
+
"typescript/no-empty-object-type": "warn",
|
|
178
|
+
"typescript/no-explicit-any": "error",
|
|
179
|
+
"typescript/no-extraneous-class": "error",
|
|
180
|
+
"typescript/no-implied-eval": "warn",
|
|
181
|
+
"typescript/no-import-type-side-effects": "warn",
|
|
182
|
+
"typescript/no-invalid-void-type": "error",
|
|
183
|
+
"typescript/no-misused-promises": "warn",
|
|
184
|
+
"typescript/no-mixed-enums": "error",
|
|
185
|
+
"typescript/no-namespace": "error",
|
|
186
|
+
"typescript/no-non-null-asserted-nullish-coalescing": "error",
|
|
187
|
+
"typescript/no-non-null-assertion": "warn",
|
|
188
|
+
"typescript/no-unnecessary-condition": "warn",
|
|
189
|
+
"typescript/no-unnecessary-qualifier": "warn",
|
|
190
|
+
"typescript/no-unnecessary-template-expression": "warn",
|
|
191
|
+
"typescript/no-unnecessary-type-constraint": "warn",
|
|
192
|
+
"typescript/no-unnecessary-type-conversion": "warn",
|
|
193
|
+
"typescript/no-unnecessary-type-parameters": "warn",
|
|
194
|
+
"typescript/no-unsafe-enum-comparison": "error",
|
|
195
|
+
"typescript/no-unsafe-function-type": "error",
|
|
196
|
+
"typescript/non-nullable-type-assertion-style": "warn",
|
|
197
|
+
"typescript/only-throw-error": "warn",
|
|
198
|
+
"typescript/prefer-for-of": "warn",
|
|
199
|
+
"typescript/prefer-function-type": "error",
|
|
200
|
+
"typescript/prefer-literal-enum-member": "error",
|
|
201
|
+
"typescript/prefer-nullish-coalescing": "warn",
|
|
202
|
+
"typescript/prefer-optional-chain": "warn",
|
|
203
|
+
"typescript/prefer-promise-reject-errors": "warn",
|
|
204
|
+
"typescript/prefer-readonly": "warn",
|
|
205
|
+
"typescript/prefer-reduce-type-parameter": "warn",
|
|
206
|
+
"typescript/prefer-return-this-type": "warn",
|
|
207
|
+
"typescript/prefer-string-starts-ends-with": "warn",
|
|
208
|
+
"typescript/promise-function-async": "warn",
|
|
209
|
+
"typescript/require-await": "warn",
|
|
210
|
+
"typescript/strict-boolean-expressions": ["warn", {
|
|
211
|
+
allowNullableBoolean: true,
|
|
212
|
+
allowNumber: false,
|
|
213
|
+
allowString: false
|
|
214
|
+
}],
|
|
215
|
+
"typescript/switch-exhaustiveness-check": "warn",
|
|
216
|
+
"typescript/unified-signatures": "warn",
|
|
217
|
+
"typescript/use-unknown-in-catch-callback-variable": "error",
|
|
218
|
+
"import/consistent-type-specifier-style": "error",
|
|
219
|
+
"import/export": "warn",
|
|
220
|
+
"import/first": "error",
|
|
221
|
+
"import/no-absolute-path": "error",
|
|
222
|
+
"import/no-anonymous-default-export": "error",
|
|
223
|
+
"import/no-cycle": "warn",
|
|
224
|
+
"import/no-empty-named-blocks": "warn",
|
|
225
|
+
"import/no-mutable-exports": "warn",
|
|
226
|
+
"import/no-self-import": "warn",
|
|
227
|
+
"import/unambiguous": "warn"
|
|
228
|
+
},
|
|
229
|
+
overrides: [{
|
|
230
|
+
files: ["**/*.{ts,tsx}"],
|
|
231
|
+
rules: { "no-const-assign": "off" }
|
|
232
|
+
}, {
|
|
233
|
+
files: ["**/*.{cjs,cts}"],
|
|
234
|
+
rules: { "import/unambiguous": "off" }
|
|
235
|
+
}]
|
|
236
|
+
};
|
|
237
|
+
//#endregion
|
|
238
|
+
export { config as default };
|
|
239
|
+
|
|
240
|
+
//# sourceMappingURL=common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.js","names":[],"sources":["../../src/oxlint/common.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\";\n\nconst config: OxlintConfig = {\n options: {\n typeAware: true,\n typeCheck: true,\n reportUnusedDisableDirectives: \"warn\",\n },\n plugins: [\"oxc\", \"eslint\", \"unicorn\", \"typescript\", \"import\"],\n rules: {\n // #region oxc\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/approx-constant\n \"oxc/approx-constant\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/bad-bitwise-operator\n \"oxc/bad-bitwise-operator\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/branches-sharing-code\n \"oxc/branches-sharing-code\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/misrefactored-assign-op\n \"oxc/misrefactored-assign-op\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-accumulating-spread\n \"oxc/no-accumulating-spread\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-barrel-file\n \"oxc/no-barrel-file\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-const-enum\n \"oxc/no-const-enum\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-map-spread\n \"oxc/no-map-spread\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/oxc/no-this-in-exported-function\n \"oxc/no-this-in-exported-function\": \"warn\",\n // #endregion\n\n // #region eslint\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/accessor-pairs\n \"accessor-pairs\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/array-callback-return\n \"array-callback-return\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/default-case-last\n \"default-case-last\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/default-param-last\n \"default-param-last\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/eqeqeq\n eqeqeq: \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/func-names\n \"func-names\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/grouped-accessor-pairs\n \"grouped-accessor-pairs\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/new-cap\n \"new-cap\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-array-constructor\n \"no-array-constructor\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-await-in-loop\n \"no-await-in-loop\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-case-declarations\n \"no-case-declarations\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-constructor-return\n \"no-constructor-return\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-duplicate-imports\n \"no-duplicate-imports\": [\"warn\", { allowSeparateTypeImports: true }],\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-else-return\n \"no-else-return\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-empty\n \"no-empty\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-empty-function\n \"no-empty-function\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-extend-native\n \"no-extend-native\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-extra-bind\n \"no-extra-bind\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-fallthrough\n \"no-fallthrough\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-implicit-coercion\n \"no-implicit-coercion\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-labels\n \"no-labels\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-lonely-if\n \"no-lonely-if\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-loop-func\n \"no-loop-func\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-multi-assign\n \"no-multi-assign\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-multi-str\n \"no-multi-str\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-new\n \"no-new\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-new-func\n \"no-new-func\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-object-constructor\n \"no-object-constructor\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-param-reassign\n \"no-param-reassign\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-promise-executor-return\n \"no-promise-executor-return\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-proto\n \"no-proto\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-return-assign\n \"no-return-assign\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-script-url\n \"no-script-url\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-self-compare\n \"no-self-compare\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-sequences\n \"no-sequences\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-template-curly-in-string\n \"no-template-curly-in-string\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-underscore-dangle\n \"no-underscore-dangle\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unmodified-loop-condition\n \"no-unmodified-loop-condition\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unneeded-ternary\n \"no-unneeded-ternary\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-use-before-define\n \"no-use-before-define\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-useless-assignment\n \"no-useless-assignment\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-useless-call\n \"no-useless-call\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-useless-computed-key\n \"no-useless-computed-key\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-useless-concat\n \"no-useless-concat\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-useless-constructor\n \"no-useless-constructor\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-useless-return\n \"no-useless-return\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-var\n \"no-var\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-warning-comments\n \"no-warning-comments\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/operator-assignment\n \"operator-assignment\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/prefer-arrow-callback\n \"prefer-arrow-callback\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/prefer-const\n \"prefer-const\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/prefer-numeric-literals\n \"prefer-numeric-literals\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/prefer-object-has-own\n \"prefer-object-has-own\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/prefer-object-spread\n \"prefer-object-spread\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/prefer-rest-params\n \"prefer-rest-params\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/prefer-spread\n \"prefer-spread\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/preserve-caught-error\n \"preserve-caught-error\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/radix\n radix: \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/symbol-description\n \"symbol-description\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/unicode-bom\n \"unicode-bom\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/eslint/yoda\n yoda: \"warn\",\n // #endregion\n\n // #region unicorn\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/catch-error-name\n \"unicorn/catch-error-name\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/consistent-date-clone\n \"unicorn/consistent-date-clone\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/consistent-function-scoping\n \"unicorn/consistent-function-scoping\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/consistent-template-literal-escape\n \"unicorn/consistent-template-literal-escape\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/custom-error-definition\n \"unicorn/custom-error-definition\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/error-message\n \"unicorn/error-message\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/explicit-length-check\n \"unicorn/explicit-length-check\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/new-for-builtins\n \"unicorn/new-for-builtins\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-abusive-eslint-disable\n \"unicorn/no-abusive-eslint-disable\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-accessor-recursion\n \"unicorn/no-accessor-recursion\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-array-for-each\n \"unicorn/no-array-for-each\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-array-method-this-argument\n \"unicorn/no-array-method-this-argument\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-await-expression-member\n \"unicorn/no-await-expression-member\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-console-spaces\n \"unicorn/no-console-spaces\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-document-cookie\n \"unicorn/no-document-cookie\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-immediate-mutation\n \"unicorn/no-immediate-mutation\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-instanceof-builtins\n \"unicorn/no-instanceof-builtins\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-length-as-slice-end\n \"unicorn/no-length-as-slice-end\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-lonely-if\n \"unicorn/no-lonely-if\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-magic-array-flat-depth\n \"unicorn/no-magic-array-flat-depth\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-negation-in-equality-check\n \"unicorn/no-negation-in-equality-check\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-new-buffer\n \"unicorn/no-new-buffer\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-object-as-default-parameter\n \"unicorn/no-object-as-default-parameter\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-typeof-undefined\n \"unicorn/no-typeof-undefined\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-unnecessary-array-flat-depth\n \"unicorn/no-unnecessary-array-flat-depth\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-unnecessary-array-splice-count\n \"unicorn/no-unnecessary-array-splice-count\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-unnecessary-slice-end\n \"unicorn/no-unnecessary-slice-end\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-useless-collection-argument\n \"unicorn/no-useless-collection-argument\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-useless-error-capture-stack-trace\n \"unicorn/no-useless-error-capture-stack-trace\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-useless-iterator-to-array\n \"unicorn/no-useless-iterator-to-array\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-useless-promise-resolve-reject\n \"unicorn/no-useless-promise-resolve-reject\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/numeric-separators-style\n \"unicorn/numeric-separators-style\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-add-event-listener\n \"unicorn/prefer-add-event-listener\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-array-find\n \"unicorn/prefer-array-find\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-array-flat\n \"unicorn/prefer-array-flat\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-array-flat-map\n \"unicorn/prefer-array-flat-map\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-array-index-of\n \"unicorn/prefer-array-index-of\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-array-some\n \"unicorn/prefer-array-some\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-bigint-literals\n \"unicorn/prefer-bigint-literals\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-blob-reading-methods\n \"unicorn/prefer-blob-reading-methods\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-classlist-toggle\n \"unicorn/prefer-classlist-toggle\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-code-point\n \"unicorn/prefer-code-point\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-date-now\n \"unicorn/prefer-date-now\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-default-parameters\n \"unicorn/prefer-default-parameters\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-append\n \"unicorn/prefer-dom-node-append\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-dataset\n \"unicorn/prefer-dom-node-dataset\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-remove\n \"unicorn/prefer-dom-node-remove\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-dom-node-text-content\n \"unicorn/prefer-dom-node-text-content\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-global-this\n \"unicorn/prefer-global-this\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-includes\n \"unicorn/prefer-includes\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-keyboard-event-key\n \"unicorn/prefer-keyboard-event-key\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-logical-operator-over-ternary\n \"unicorn/prefer-logical-operator-over-ternary\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-math-min-max\n \"unicorn/prefer-math-min-max\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-math-trunc\n \"unicorn/prefer-math-trunc\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-modern-dom-apis\n \"unicorn/prefer-modern-dom-apis\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-native-coercion-functions\n \"unicorn/prefer-native-coercion-functions\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-negative-index\n \"unicorn/prefer-negative-index\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-node-protocol\n \"unicorn/prefer-node-protocol\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-number-properties\n \"unicorn/prefer-number-properties\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-object-from-entries\n \"unicorn/prefer-object-from-entries\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-optional-catch-binding\n \"unicorn/prefer-optional-catch-binding\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-query-selector\n \"unicorn/prefer-query-selector\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-regexp-test\n \"unicorn/prefer-regexp-test\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-response-static-json\n \"unicorn/prefer-response-static-json\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-string-raw\n \"unicorn/prefer-string-raw\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-string-replace-all\n \"unicorn/prefer-string-replace-all\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-string-slice\n \"unicorn/prefer-string-slice\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-string-trim-start-end\n \"unicorn/prefer-string-trim-start-end\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-structured-clone\n \"unicorn/prefer-structured-clone\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-ternary\n \"unicorn/prefer-ternary\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-type-error\n \"unicorn/prefer-type-error\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/require-array-join-separator\n \"unicorn/require-array-join-separator\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/require-module-attributes\n \"unicorn/require-module-attributes\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/require-number-to-fixed-digits-argument\n \"unicorn/require-number-to-fixed-digits-argument\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/require-post-message-target-origin\n \"unicorn/require-post-message-target-origin\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/unicorn/text-encoding-identifier-case\n \"unicorn/text-encoding-identifier-case\": \"warn\",\n // #endregion\n\n // #region typescript\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/adjacent-overload-signatures\n \"typescript/adjacent-overload-signatures\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/array-type\n \"typescript/array-type\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/ban-ts-comment\n \"typescript/ban-ts-comment\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/ban-tslint-comment\n \"typescript/ban-tslint-comment\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/consistent-generic-constructors\n \"typescript/consistent-generic-constructors\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/consistent-type-assertions\n \"typescript/consistent-type-assertions\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/consistent-type-definitions\n \"typescript/consistent-type-definitions\": [\"warn\", \"type\"],\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/consistent-type-exports\n \"typescript/consistent-type-exports\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/consistent-type-imports\n \"typescript/consistent-type-imports\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/dot-notation\n \"typescript/dot-notation\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-confusing-non-null-assertion\n \"typescript/no-confusing-non-null-assertion\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-confusing-void-expression\n \"typescript/no-confusing-void-expression\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-deprecated\n \"typescript/no-deprecated\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-dynamic-delete\n \"typescript/no-dynamic-delete\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-empty-interface\n \"typescript/no-empty-interface\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-empty-object-type\n \"typescript/no-empty-object-type\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-explicit-any\n \"typescript/no-explicit-any\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-extraneous-class\n \"typescript/no-extraneous-class\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-implied-eval\n \"typescript/no-implied-eval\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-import-type-side-effects\n \"typescript/no-import-type-side-effects\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-invalid-void-type\n \"typescript/no-invalid-void-type\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-misused-promises\n \"typescript/no-misused-promises\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-mixed-enums\n \"typescript/no-mixed-enums\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-namespace\n \"typescript/no-namespace\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-non-null-asserted-nullish-coalescing\n \"typescript/no-non-null-asserted-nullish-coalescing\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-non-null-assertion\n \"typescript/no-non-null-assertion\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unnecessary-condition\n \"typescript/no-unnecessary-condition\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unnecessary-qualifier\n \"typescript/no-unnecessary-qualifier\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unnecessary-template-expression\n \"typescript/no-unnecessary-template-expression\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unnecessary-type-constraint\n \"typescript/no-unnecessary-type-constraint\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unnecessary-type-conversion\n \"typescript/no-unnecessary-type-conversion\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unnecessary-type-parameters\n \"typescript/no-unnecessary-type-parameters\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unsafe-enum-comparison\n \"typescript/no-unsafe-enum-comparison\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-unsafe-function-type\n \"typescript/no-unsafe-function-type\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/non-nullable-type-assertion-style\n \"typescript/non-nullable-type-assertion-style\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/only-throw-error\n \"typescript/only-throw-error\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-for-of\n \"typescript/prefer-for-of\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-function-type\n \"typescript/prefer-function-type\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-literal-enum-member\n \"typescript/prefer-literal-enum-member\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-nullish-coalescing\n \"typescript/prefer-nullish-coalescing\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-optional-chain\n \"typescript/prefer-optional-chain\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-promise-reject-errors\n \"typescript/prefer-promise-reject-errors\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-readonly\n \"typescript/prefer-readonly\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-reduce-type-parameter\n \"typescript/prefer-reduce-type-parameter\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-return-this-type\n \"typescript/prefer-return-this-type\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/prefer-string-starts-ends-with\n \"typescript/prefer-string-starts-ends-with\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/promise-function-async\n \"typescript/promise-function-async\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/require-await\n \"typescript/require-await\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/strict-boolean-expressions\n \"typescript/strict-boolean-expressions\": [\n \"warn\",\n { allowNullableBoolean: true, allowNumber: false, allowString: false },\n ],\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/switch-exhaustiveness-check\n \"typescript/switch-exhaustiveness-check\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/unified-signatures\n \"typescript/unified-signatures\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/typescript/use-unknown-in-catch-callback-variable\n \"typescript/use-unknown-in-catch-callback-variable\": \"error\",\n // #endregion\n\n // #region import\n // https://oxc.rs/docs/guide/usage/linter/rules/import/consistent-type-specifier-style\n \"import/consistent-type-specifier-style\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/export\n \"import/export\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/first\n \"import/first\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/no-absolute-path\n \"import/no-absolute-path\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/no-anonymous-default-export\n \"import/no-anonymous-default-export\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/no-cycle\n \"import/no-cycle\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/no-empty-named-blocks\n \"import/no-empty-named-blocks\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/no-mutable-exports\n \"import/no-mutable-exports\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/no-self-import\n \"import/no-self-import\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/import/unambiguous\n \"import/unambiguous\": \"warn\",\n // #endregion\n },\n\n overrides: [\n {\n files: [\"**/*.{ts,tsx}\"],\n rules: {\n \"no-const-assign\": \"off\",\n },\n },\n {\n files: [\"**/*.{cjs,cts}\"],\n rules: {\n \"import/unambiguous\": \"off\",\n },\n },\n ],\n} satisfies OxlintConfig;\n\nexport default config;\n"],"mappings":"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"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//#region src/oxlint/react.ts
|
|
2
|
+
const config = {
|
|
3
|
+
plugins: ["react"],
|
|
4
|
+
rules: {
|
|
5
|
+
"react/button-has-type": "warn",
|
|
6
|
+
"react/checked-requires-onchange-or-readonly": "warn",
|
|
7
|
+
"react/exhaustive-deps": "error",
|
|
8
|
+
"react/forward-ref-uses-ref": "warn",
|
|
9
|
+
"react/hook-use-state": "error",
|
|
10
|
+
"react/iframe-missing-sandbox": "warn",
|
|
11
|
+
"react/jsx-filename-extension": ["error", { extensions: ["jsx", "tsx"] }],
|
|
12
|
+
"react/jsx-fragments": "error",
|
|
13
|
+
"react/jsx-key": "error",
|
|
14
|
+
"react/jsx-no-comment-textnodes": "warn",
|
|
15
|
+
"react/jsx-no-duplicate-props": "error",
|
|
16
|
+
"react/jsx-no-script-url": "error",
|
|
17
|
+
"react/jsx-no-target-blank": "error",
|
|
18
|
+
"react/jsx-no-useless-fragment": "warn",
|
|
19
|
+
"react/jsx-props-no-spread-multi": "error",
|
|
20
|
+
"react/no-array-index-key": "error",
|
|
21
|
+
"react/no-clone-element": "error",
|
|
22
|
+
"react/no-danger": "error",
|
|
23
|
+
"react/no-find-dom-node": "error",
|
|
24
|
+
"react/no-namespace": "warn",
|
|
25
|
+
"react/no-react-children": "error",
|
|
26
|
+
"react/no-render-return-value": "error",
|
|
27
|
+
"react/no-string-refs": "error",
|
|
28
|
+
"react/no-this-in-sfc": "error",
|
|
29
|
+
"react/no-unescaped-entities": "warn",
|
|
30
|
+
"react/only-export-components": ["warn", { allowConstantExport: true }],
|
|
31
|
+
"react/prefer-function-component": "error",
|
|
32
|
+
"react/rules-of-hooks": "error",
|
|
33
|
+
"react/self-closing-comp": "warn",
|
|
34
|
+
"react/style-prop-object": "error",
|
|
35
|
+
"react/void-dom-elements-no-children": "warn"
|
|
36
|
+
},
|
|
37
|
+
overrides: [{
|
|
38
|
+
files: ["**/*.{tsx}"],
|
|
39
|
+
rules: { "react/jsx-no-undef": "off" }
|
|
40
|
+
}]
|
|
41
|
+
};
|
|
42
|
+
//#endregion
|
|
43
|
+
export { config as default };
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=react.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react.js","names":[],"sources":["../../src/oxlint/react.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\";\n\nconst config: OxlintConfig = {\n plugins: [\"react\"],\n rules: {\n // https://oxc.rs/docs/guide/usage/linter/rules/react/button-has-type\n \"react/button-has-type\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/checked-requires-onchange-or-readonly\n \"react/checked-requires-onchange-or-readonly\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/exhaustive-deps\n \"react/exhaustive-deps\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/forward-ref-uses-ref\n \"react/forward-ref-uses-ref\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/hook-use-state\n \"react/hook-use-state\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/iframe-missing-sandbox\n \"react/iframe-missing-sandbox\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-filename-extension\n \"react/jsx-filename-extension\": [\"error\", { extensions: [\"jsx\", \"tsx\"] }],\n // https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-fragments\n \"react/jsx-fragments\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-key\n \"react/jsx-key\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-comment-textnodes\n \"react/jsx-no-comment-textnodes\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-duplicate-props\n \"react/jsx-no-duplicate-props\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-script-url\n \"react/jsx-no-script-url\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-target-blank\n \"react/jsx-no-target-blank\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-no-useless-fragment\n \"react/jsx-no-useless-fragment\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/jsx-props-no-spread-multi\n \"react/jsx-props-no-spread-multi\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/no-array-index-key\n \"react/no-array-index-key\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/no-clone-element\n \"react/no-clone-element\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/no-danger\n \"react/no-danger\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/no-find-dom-node\n \"react/no-find-dom-node\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/no-namespace\n \"react/no-namespace\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/no-react-children\n \"react/no-react-children\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/no-render-return-value\n \"react/no-render-return-value\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/no-string-refs\n \"react/no-string-refs\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/no-this-in-sfc\n \"react/no-this-in-sfc\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/no-unescaped-entities\n \"react/no-unescaped-entities\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/only-export-components\n \"react/only-export-components\": [\"warn\", { allowConstantExport: true }],\n // https://oxc.rs/docs/guide/usage/linter/rules/react/prefer-function-component\n \"react/prefer-function-component\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/rules-of-hooks\n \"react/rules-of-hooks\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/self-closing-comp\n \"react/self-closing-comp\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/style-prop-object\n \"react/style-prop-object\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/react/void-dom-elements-no-children\n \"react/void-dom-elements-no-children\": \"warn\",\n },\n\n overrides: [\n {\n files: [\"**/*.{tsx}\"],\n rules: {\n // #region disable\n \"react/jsx-no-undef\": \"off\",\n // #endregion\n },\n },\n ],\n} satisfies OxlintConfig;\n\nexport default config;\n"],"mappings":";AAEA,MAAM,SAAuB;CAC3B,SAAS,CAAC,OAAO;CACjB,OAAO;EAEL,yBAAyB;EAEzB,+CAA+C;EAE/C,yBAAyB;EAEzB,8BAA8B;EAE9B,wBAAwB;EAExB,gCAAgC;EAEhC,gCAAgC,CAAC,SAAS,EAAE,YAAY,CAAC,OAAO,KAAK,EAAE,CAAC;EAExE,uBAAuB;EAEvB,iBAAiB;EAEjB,kCAAkC;EAElC,gCAAgC;EAEhC,2BAA2B;EAE3B,6BAA6B;EAE7B,iCAAiC;EAEjC,mCAAmC;EAEnC,4BAA4B;EAE5B,0BAA0B;EAE1B,mBAAmB;EAEnB,0BAA0B;EAE1B,sBAAsB;EAEtB,2BAA2B;EAE3B,gCAAgC;EAEhC,wBAAwB;EAExB,wBAAwB;EAExB,+BAA+B;EAE/B,gCAAgC,CAAC,QAAQ,EAAE,qBAAqB,KAAK,CAAC;EAEtE,mCAAmC;EAEnC,wBAAwB;EAExB,2BAA2B;EAE3B,2BAA2B;EAE3B,uCAAuC;CACzC;CAEA,WAAW,CACT;EACE,OAAO,CAAC,YAAY;EACpB,OAAO,EAEL,sBAAsB,MAExB;CACF,CACF;AACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/oxlint/vitest.ts
|
|
2
|
+
const config = {
|
|
3
|
+
env: { vitest: true },
|
|
4
|
+
plugins: ["vitest"],
|
|
5
|
+
rules: {
|
|
6
|
+
"vitest/no-conditional-tests": "error",
|
|
7
|
+
"vitest/no-import-node-test": "warn",
|
|
8
|
+
"vitest/prefer-describe-function-title": "warn",
|
|
9
|
+
"vitest/prefer-expect-type-of": "error",
|
|
10
|
+
"vitest/prefer-importing-vitest-globals": "error",
|
|
11
|
+
"vitest/prefer-to-be-object": "warn",
|
|
12
|
+
"vitest/require-awaited-expect-poll": "error",
|
|
13
|
+
"vitest/warn-todo": "warn"
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { config as default };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=vitest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vitest.js","names":[],"sources":["../../src/oxlint/vitest.ts"],"sourcesContent":["import type { OxlintConfig } from \"oxlint\";\n\nconst config: OxlintConfig = {\n env: { vitest: true },\n plugins: [\"vitest\"],\n rules: {\n // https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-conditional-tests\n \"vitest/no-conditional-tests\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/vitest/no-import-node-test\n \"vitest/no-import-node-test\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/vitest/prefer-describe-function-title\n \"vitest/prefer-describe-function-title\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/vitest/prefer-expect-type-of\n \"vitest/prefer-expect-type-of\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/vitest/prefer-importing-vitest-globals\n \"vitest/prefer-importing-vitest-globals\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/vitest/prefer-to-be-object\n \"vitest/prefer-to-be-object\": \"warn\",\n // https://oxc.rs/docs/guide/usage/linter/rules/vitest/require-awaited-expect-poll\n \"vitest/require-awaited-expect-poll\": \"error\",\n // https://oxc.rs/docs/guide/usage/linter/rules/vitest/warn-todo\n \"vitest/warn-todo\": \"warn\",\n },\n} satisfies OxlintConfig;\n\nexport default config;\n"],"mappings":";AAEA,MAAM,SAAuB;CAC3B,KAAK,EAAE,QAAQ,KAAK;CACpB,SAAS,CAAC,QAAQ;CAClB,OAAO;EAEL,+BAA+B;EAE/B,8BAA8B;EAE9B,yCAAyC;EAEzC,gCAAgC;EAEhC,0CAA0C;EAE1C,8BAA8B;EAE9B,sCAAsC;EAEtC,oBAAoB;CACtB;AACF"}
|
package/dist/utils.d.ts
ADDED