@nekoyasuii/config 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 +1 -0
- package/dist/chunk-41590bpf.js +70 -0
- package/dist/chunk-5wgwscd0.js +4 -0
- package/dist/chunk-8m4by0h8.js +138 -0
- package/dist/chunk-c8jq73qx.js +38 -0
- package/dist/chunk-xmts0xe5.js +565 -0
- package/dist/chunk-y56m56wh.js +430 -0
- package/dist/tools/oxfmt/index.d.ts +36 -0
- package/dist/tools/oxfmt/index.js +56 -0
- package/dist/tools/oxlint/config/anti-slop/index.d.ts +27 -0
- package/dist/tools/oxlint/config/anti-slop/index.js +7 -0
- package/dist/tools/oxlint/config/anti-slop/plugin.d.ts +2 -0
- package/dist/tools/oxlint/config/anti-slop/plugin.js +1944 -0
- package/dist/tools/oxlint/config/core/index.d.ts +558 -0
- package/dist/tools/oxlint/config/core/index.js +8 -0
- package/dist/tools/oxlint/config/index.d.ts +774 -0
- package/dist/tools/oxlint/config/index.js +57 -0
- package/dist/tools/oxlint/config/js-plugins/index.d.ts +446 -0
- package/dist/tools/oxlint/config/js-plugins/index.js +11 -0
- package/dist/tools/oxlint/config/react/index.d.ts +131 -0
- package/dist/tools/oxlint/config/react/index.js +7 -0
- package/dist/tools/oxlint/config/remix/index.d.ts +11 -0
- package/dist/tools/oxlint/config/remix/index.js +19 -0
- package/dist/tools/oxlint/config/tanstack/index.d.ts +17 -0
- package/dist/tools/oxlint/config/tanstack/index.js +25 -0
- package/dist/tools/oxlint/config/tanstack/js-plugins/index.d.ts +30 -0
- package/dist/tools/oxlint/config/tanstack/js-plugins/index.js +33 -0
- package/dist/tools/oxlint/rules/index.d.ts +2 -0
- package/dist/tools/oxlint/rules/index.js +482 -0
- package/dist/tools/shared/ignores.d.ts +1 -0
- package/dist/tools/shared/ignores.js +7 -0
- package/dist/tools/shared/tsconfig-aliases.d.ts +11 -0
- package/dist/tools/shared/types.d.ts +1 -0
- package/package.json +114 -0
- package/tsconfig.json +12 -0
- package/tsconfig.node.json +30 -0
- package/tsconfig.react.json +30 -0
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
// tools/oxlint/config/js-plugins/index.ts
|
|
2
|
+
import { existsSync } from "node:fs";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
import { defineConfig } from "oxlint";
|
|
5
|
+
var lazueePluginCandidates = [
|
|
6
|
+
new URL("../../rules/index.js", import.meta.url),
|
|
7
|
+
new URL("tools/oxlint/rules/index.js", import.meta.url)
|
|
8
|
+
];
|
|
9
|
+
var lazueePluginSpecifier = fileURLToPath(lazueePluginCandidates.find((candidate) => existsSync(candidate)) ?? lazueePluginCandidates[0]);
|
|
10
|
+
var jsPluginEntries = [
|
|
11
|
+
{ name: "github", specifier: "eslint-plugin-github" },
|
|
12
|
+
{ name: "sonarjs", specifier: "eslint-plugin-sonarjs" },
|
|
13
|
+
{ name: "react-doctor", specifier: "oxlint-plugin-react-doctor" },
|
|
14
|
+
{ name: "tailwindcss", specifier: "oxlint-tailwindcss" },
|
|
15
|
+
{ name: "lazuee", specifier: lazueePluginSpecifier }
|
|
16
|
+
];
|
|
17
|
+
var jsPluginSettings = {
|
|
18
|
+
"react-doctor": {
|
|
19
|
+
portedRuleMode: "curated"
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
var jsPlugins = [...jsPluginEntries];
|
|
23
|
+
var config = defineConfig({
|
|
24
|
+
jsPlugins,
|
|
25
|
+
settings: jsPluginSettings,
|
|
26
|
+
overrides: [
|
|
27
|
+
{
|
|
28
|
+
files: [
|
|
29
|
+
"**/*.{test,spec,test-d,spec-d}.{ts,tsx,js,jsx}",
|
|
30
|
+
"**/__tests__/**/*.{ts,tsx,js,jsx}"
|
|
31
|
+
],
|
|
32
|
+
rules: {
|
|
33
|
+
"sonarjs/no-duplicate-string": "off"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
rules: {
|
|
38
|
+
"github/a11y-aria-label-is-well-formatted": "error",
|
|
39
|
+
"github/a11y-no-title-attribute": "error",
|
|
40
|
+
"github/a11y-no-visually-hidden-interactive-element": "error",
|
|
41
|
+
"github/a11y-role-supports-aria-props": "error",
|
|
42
|
+
"github/a11y-svg-has-accessible-name": "error",
|
|
43
|
+
"github/array-foreach": "error",
|
|
44
|
+
"github/async-currenttarget": "error",
|
|
45
|
+
"github/async-preventdefault": "error",
|
|
46
|
+
"github/authenticity-token": "error",
|
|
47
|
+
"github/filenames-match-regex": "error",
|
|
48
|
+
"github/get-attribute": "error",
|
|
49
|
+
"github/js-class-name": "error",
|
|
50
|
+
"github/no-blur": "error",
|
|
51
|
+
"github/no-d-none": "error",
|
|
52
|
+
"github/no-dataset": "off",
|
|
53
|
+
"github/no-dynamic-script-tag": "error",
|
|
54
|
+
"github/no-implicit-buggy-globals": "off",
|
|
55
|
+
"github/no-inner-html": "error",
|
|
56
|
+
"github/no-innerText": "error",
|
|
57
|
+
"github/no-then": "error",
|
|
58
|
+
"github/no-useless-passive": "error",
|
|
59
|
+
"github/prefer-observers": "error",
|
|
60
|
+
"github/require-passive-events": "error",
|
|
61
|
+
"github/unescaped-html-literal": "off",
|
|
62
|
+
"sonarjs/arguments-usage": "error",
|
|
63
|
+
"sonarjs/array-constructor": "error",
|
|
64
|
+
"sonarjs/arrow-function-convention": "off",
|
|
65
|
+
"sonarjs/aws-apigateway-public-api": "error",
|
|
66
|
+
"sonarjs/aws-ec2-rds-dms-public": "error",
|
|
67
|
+
"sonarjs/aws-ec2-unencrypted-ebs-volume": "error",
|
|
68
|
+
"sonarjs/aws-efs-unencrypted": "error",
|
|
69
|
+
"sonarjs/aws-iam-all-privileges": "error",
|
|
70
|
+
"sonarjs/aws-iam-all-resources-accessible": "error",
|
|
71
|
+
"sonarjs/aws-iam-privilege-escalation": "error",
|
|
72
|
+
"sonarjs/aws-iam-public-access": "error",
|
|
73
|
+
"sonarjs/aws-opensearchservice-domain": "error",
|
|
74
|
+
"sonarjs/aws-rds-unencrypted-databases": "error",
|
|
75
|
+
"sonarjs/aws-restricted-ip-admin-access": "error",
|
|
76
|
+
"sonarjs/aws-s3-bucket-granted-access": "error",
|
|
77
|
+
"sonarjs/aws-s3-bucket-insecure-http": "error",
|
|
78
|
+
"sonarjs/aws-s3-bucket-public-access": "error",
|
|
79
|
+
"sonarjs/aws-s3-bucket-versioning": "error",
|
|
80
|
+
"sonarjs/aws-sagemaker-unencrypted-notebook": "error",
|
|
81
|
+
"sonarjs/aws-sns-unencrypted-topics": "error",
|
|
82
|
+
"sonarjs/aws-sqs-unencrypted-queue": "error",
|
|
83
|
+
"sonarjs/block-scoped-var": "error",
|
|
84
|
+
"sonarjs/bool-param-default": "error",
|
|
85
|
+
"sonarjs/call-argument-line": "error",
|
|
86
|
+
"sonarjs/chai-determinate-assertion": "error",
|
|
87
|
+
"sonarjs/class-name": "error",
|
|
88
|
+
"sonarjs/code-eval": "error",
|
|
89
|
+
"sonarjs/cognitive-complexity": ["error", 20],
|
|
90
|
+
"sonarjs/comma-or-logical-or-case": "error",
|
|
91
|
+
"sonarjs/comment-regex": "error",
|
|
92
|
+
"sonarjs/constructor-for-side-effects": "error",
|
|
93
|
+
"sonarjs/content-length": "error",
|
|
94
|
+
"sonarjs/content-security-policy": "error",
|
|
95
|
+
"sonarjs/cookie-no-httponly": "error",
|
|
96
|
+
"sonarjs/cors": "error",
|
|
97
|
+
"sonarjs/csrf": "error",
|
|
98
|
+
"sonarjs/cyclomatic-complexity": "off",
|
|
99
|
+
"sonarjs/declarations-in-global-scope": "error",
|
|
100
|
+
"sonarjs/destructuring-assignment-syntax": "error",
|
|
101
|
+
"sonarjs/disabled-timeout": "error",
|
|
102
|
+
"sonarjs/dynamically-constructed-templates": "error",
|
|
103
|
+
"sonarjs/elseif-without-else": "off",
|
|
104
|
+
"sonarjs/encryption-secure-mode": "error",
|
|
105
|
+
"sonarjs/expression-complexity": "error",
|
|
106
|
+
"sonarjs/file-header": "off",
|
|
107
|
+
"sonarjs/file-name-differ-from-class": "off",
|
|
108
|
+
"sonarjs/file-permissions": "error",
|
|
109
|
+
"sonarjs/file-uploads": "error",
|
|
110
|
+
"sonarjs/fixme-tag": "error",
|
|
111
|
+
"sonarjs/for-in": "error",
|
|
112
|
+
"sonarjs/for-loop-increment-sign": "error",
|
|
113
|
+
"sonarjs/function-inside-loop": "error",
|
|
114
|
+
"sonarjs/function-name": "error",
|
|
115
|
+
"sonarjs/future-reserved-words": "error",
|
|
116
|
+
"sonarjs/generator-without-yield": "error",
|
|
117
|
+
"sonarjs/hardcoded-secret-signatures": "error",
|
|
118
|
+
"sonarjs/hashing": "error",
|
|
119
|
+
"sonarjs/inconsistent-function-call": "error",
|
|
120
|
+
"sonarjs/insecure-cookie": "error",
|
|
121
|
+
"sonarjs/insecure-jwt-token": "error",
|
|
122
|
+
"sonarjs/inverted-assertion-arguments": "error",
|
|
123
|
+
"sonarjs/label-position": "error",
|
|
124
|
+
"sonarjs/link-with-target-blank": "error",
|
|
125
|
+
"sonarjs/max-lines": "off",
|
|
126
|
+
"sonarjs/max-lines-per-function": "off",
|
|
127
|
+
"sonarjs/max-switch-cases": "error",
|
|
128
|
+
"sonarjs/max-union-size": "error",
|
|
129
|
+
"sonarjs/misplaced-loop-counter": "error",
|
|
130
|
+
"sonarjs/nested-control-flow": "off",
|
|
131
|
+
"sonarjs/no-all-duplicated-branches": "error",
|
|
132
|
+
"sonarjs/no-angular-bypass-sanitization": "error",
|
|
133
|
+
"sonarjs/no-built-in-override": "error",
|
|
134
|
+
"sonarjs/no-case-label-in-switch": "error",
|
|
135
|
+
"sonarjs/no-clear-text-protocols": "error",
|
|
136
|
+
"sonarjs/no-code-after-done": "error",
|
|
137
|
+
"sonarjs/no-collapsible-if": "error",
|
|
138
|
+
"sonarjs/no-commented-code": "error",
|
|
139
|
+
"sonarjs/no-dead-store": "error",
|
|
140
|
+
"sonarjs/no-delete-var": "error",
|
|
141
|
+
"sonarjs/no-duplicate-in-composite": "error",
|
|
142
|
+
"sonarjs/no-duplicate-string": "error",
|
|
143
|
+
"sonarjs/no-duplicated-branches": "error",
|
|
144
|
+
"sonarjs/no-element-overwrite": "error",
|
|
145
|
+
"sonarjs/no-empty-collection": "error",
|
|
146
|
+
"sonarjs/no-empty-test-file": "error",
|
|
147
|
+
"sonarjs/no-equals-in-for-termination": "error",
|
|
148
|
+
"sonarjs/no-exclusive-tests": "error",
|
|
149
|
+
"sonarjs/no-extra-arguments": "error",
|
|
150
|
+
"sonarjs/no-fallthrough": "error",
|
|
151
|
+
"sonarjs/no-function-declaration-in-block": "error",
|
|
152
|
+
"sonarjs/no-global-this": "error",
|
|
153
|
+
"sonarjs/no-globals-shadowing": "error",
|
|
154
|
+
"sonarjs/no-gratuitous-expressions": "error",
|
|
155
|
+
"sonarjs/no-hardcoded-ip": "error",
|
|
156
|
+
"sonarjs/no-hardcoded-passwords": "error",
|
|
157
|
+
"sonarjs/no-hardcoded-secrets": "error",
|
|
158
|
+
"sonarjs/no-hook-setter-in-body": "error",
|
|
159
|
+
"sonarjs/no-identical-conditions": "error",
|
|
160
|
+
"sonarjs/no-identical-expressions": "error",
|
|
161
|
+
"sonarjs/no-identical-functions": "error",
|
|
162
|
+
"sonarjs/no-ignored-exceptions": "error",
|
|
163
|
+
"sonarjs/no-implicit-dependencies": "off",
|
|
164
|
+
"sonarjs/no-implicit-global": "error",
|
|
165
|
+
"sonarjs/no-incomplete-assertions": "error",
|
|
166
|
+
"sonarjs/no-internal-api-use": "error",
|
|
167
|
+
"sonarjs/no-invariant-returns": "error",
|
|
168
|
+
"sonarjs/no-inverted-boolean-check": "error",
|
|
169
|
+
"sonarjs/no-labels": "error",
|
|
170
|
+
"sonarjs/no-literal-call": "error",
|
|
171
|
+
"sonarjs/no-mime-sniff": "error",
|
|
172
|
+
"sonarjs/no-nested-assignment": "error",
|
|
173
|
+
"sonarjs/no-nested-conditional": "error",
|
|
174
|
+
"sonarjs/no-nested-functions": "error",
|
|
175
|
+
"sonarjs/no-nested-incdec": "error",
|
|
176
|
+
"sonarjs/no-nested-switch": "error",
|
|
177
|
+
"sonarjs/no-nested-template-literals": "error",
|
|
178
|
+
"sonarjs/no-os-command-from-path": "error",
|
|
179
|
+
"sonarjs/no-parameter-reassignment": "error",
|
|
180
|
+
"sonarjs/no-primitive-wrappers": "error",
|
|
181
|
+
"sonarjs/no-redundant-assignments": "error",
|
|
182
|
+
"sonarjs/no-redundant-boolean": "error",
|
|
183
|
+
"sonarjs/no-redundant-jump": "error",
|
|
184
|
+
"sonarjs/no-reference-error": "off",
|
|
185
|
+
"sonarjs/no-referrer-policy": "error",
|
|
186
|
+
"sonarjs/no-same-argument-assert": "error",
|
|
187
|
+
"sonarjs/no-same-line-conditional": "error",
|
|
188
|
+
"sonarjs/no-session-cookies-on-static-assets": "error",
|
|
189
|
+
"sonarjs/no-skipped-tests": "error",
|
|
190
|
+
"sonarjs/no-sonar-comments": "error",
|
|
191
|
+
"sonarjs/no-table-as-layout": "error",
|
|
192
|
+
"sonarjs/no-undefined-assignment": "error",
|
|
193
|
+
"sonarjs/no-unenclosed-multiline-block": "error",
|
|
194
|
+
"sonarjs/no-uniq-key": "error",
|
|
195
|
+
"sonarjs/no-unthrown-error": "error",
|
|
196
|
+
"sonarjs/no-unused-collection": "error",
|
|
197
|
+
"sonarjs/no-unused-function-argument": "error",
|
|
198
|
+
"sonarjs/no-unused-vars": "error",
|
|
199
|
+
"sonarjs/no-use-of-empty-return-value": "error",
|
|
200
|
+
"sonarjs/no-useless-catch": "error",
|
|
201
|
+
"sonarjs/no-useless-increment": "error",
|
|
202
|
+
"sonarjs/no-useless-react-setstate": "error",
|
|
203
|
+
"sonarjs/no-variable-usage-before-declaration": "error",
|
|
204
|
+
"sonarjs/no-weak-cipher": "error",
|
|
205
|
+
"sonarjs/no-weak-keys": "error",
|
|
206
|
+
"sonarjs/no-wildcard-import": "error",
|
|
207
|
+
"sonarjs/non-existent-operator": "error",
|
|
208
|
+
"sonarjs/object-alt-content": "error",
|
|
209
|
+
"sonarjs/prefer-default-last": "error",
|
|
210
|
+
"sonarjs/prefer-object-literal": "error",
|
|
211
|
+
"sonarjs/prefer-promise-shorthand": "error",
|
|
212
|
+
"sonarjs/prefer-single-boolean-return": "error",
|
|
213
|
+
"sonarjs/prefer-type-guard": "error",
|
|
214
|
+
"sonarjs/prefer-while": "error",
|
|
215
|
+
"sonarjs/production-debug": "error",
|
|
216
|
+
"sonarjs/pseudo-random": "error",
|
|
217
|
+
"sonarjs/public-static-readonly": "error",
|
|
218
|
+
"sonarjs/publicly-writable-directories": "error",
|
|
219
|
+
"sonarjs/redundant-type-aliases": "error",
|
|
220
|
+
"sonarjs/review-blockchain-mnemonic": "error",
|
|
221
|
+
"sonarjs/session-regeneration": "error",
|
|
222
|
+
"sonarjs/shorthand-property-grouping": "off",
|
|
223
|
+
"sonarjs/stable-tests": "error",
|
|
224
|
+
"sonarjs/stateful-regex": "error",
|
|
225
|
+
"sonarjs/strict-transport-security": "error",
|
|
226
|
+
"sonarjs/table-header": "error",
|
|
227
|
+
"sonarjs/table-header-reference": "error",
|
|
228
|
+
"sonarjs/test-check-exception": "error",
|
|
229
|
+
"sonarjs/todo-tag": "error",
|
|
230
|
+
"sonarjs/too-many-break-or-continue-in-loop": "error",
|
|
231
|
+
"sonarjs/unverified-certificate": "error",
|
|
232
|
+
"sonarjs/unverified-hostname": "error",
|
|
233
|
+
"sonarjs/updated-const-var": "error",
|
|
234
|
+
"sonarjs/updated-loop-counter": "error",
|
|
235
|
+
"sonarjs/use-type-alias": "error",
|
|
236
|
+
"sonarjs/variable-name": "error",
|
|
237
|
+
"sonarjs/weak-ssl": "error",
|
|
238
|
+
"sonarjs/x-powered-by": "error",
|
|
239
|
+
"sonarjs/xml-parser-xxe": "error",
|
|
240
|
+
"react-doctor/activity-wraps-effect-heavy-subtree": "error",
|
|
241
|
+
"react-doctor/advanced-event-handler-refs": "error",
|
|
242
|
+
"react-doctor/async-await-in-loop": "error",
|
|
243
|
+
"react-doctor/async-defer-await": "error",
|
|
244
|
+
"react-doctor/async-parallel": "error",
|
|
245
|
+
"react-doctor/auth-token-in-web-storage": "error",
|
|
246
|
+
"react-doctor/client-localstorage-no-version": "error",
|
|
247
|
+
"react-doctor/client-passive-event-listeners": "error",
|
|
248
|
+
"react-doctor/dialog-has-accessible-name": "error",
|
|
249
|
+
"react-doctor/effect-needs-cleanup": "error",
|
|
250
|
+
"react-doctor/hooks-no-nan-in-deps": "error",
|
|
251
|
+
"react-doctor/html-no-invalid-paragraph-child": "error",
|
|
252
|
+
"react-doctor/html-no-invalid-table-nesting": "error",
|
|
253
|
+
"react-doctor/html-no-nested-interactive": "error",
|
|
254
|
+
"react-doctor/jotai-derived-atom-returns-fresh-object": "error",
|
|
255
|
+
"react-doctor/jotai-select-atom-in-render-body": "error",
|
|
256
|
+
"react-doctor/jotai-tq-use-raw-query-atom": "error",
|
|
257
|
+
"react-doctor/js-async-reduce-without-awaited-acc": "error",
|
|
258
|
+
"react-doctor/js-batch-dom-css": "error",
|
|
259
|
+
"react-doctor/js-cache-property-access": "error",
|
|
260
|
+
"react-doctor/js-cache-storage": "error",
|
|
261
|
+
"react-doctor/js-combine-iterations": "error",
|
|
262
|
+
"react-doctor/js-early-exit": "error",
|
|
263
|
+
"react-doctor/js-flatmap-filter": "error",
|
|
264
|
+
"react-doctor/js-hoist-intl": "error",
|
|
265
|
+
"react-doctor/js-hoist-regexp": "error",
|
|
266
|
+
"react-doctor/js-index-maps": "error",
|
|
267
|
+
"react-doctor/js-length-check-first": "error",
|
|
268
|
+
"react-doctor/js-min-max-loop": "error",
|
|
269
|
+
"react-doctor/js-set-map-lookups": "error",
|
|
270
|
+
"react-doctor/js-tosorted-immutable": "error",
|
|
271
|
+
"react-doctor/no-adjust-state-on-prop-change": "error",
|
|
272
|
+
"react-doctor/no-array-index-as-key": "error",
|
|
273
|
+
"react-doctor/no-async-effect-callback": "error",
|
|
274
|
+
"react-doctor/no-barrel-import": "error",
|
|
275
|
+
"react-doctor/no-call-component-as-function": "error",
|
|
276
|
+
"react-doctor/no-cascading-set-state": "error",
|
|
277
|
+
"react-doctor/no-chain-state-updates": "error",
|
|
278
|
+
"react-doctor/no-create-context-in-render": "error",
|
|
279
|
+
"react-doctor/no-create-ref-in-function-component": "error",
|
|
280
|
+
"react-doctor/no-create-store-in-render": "error",
|
|
281
|
+
"react-doctor/no-derived-state": "error",
|
|
282
|
+
"react-doctor/no-derived-state-effect": "error",
|
|
283
|
+
"react-doctor/no-derived-useState": "error",
|
|
284
|
+
"react-doctor/no-direct-state-mutation": "error",
|
|
285
|
+
"react-doctor/no-disabled-zoom": "error",
|
|
286
|
+
"react-doctor/no-document-start-view-transition": "error",
|
|
287
|
+
"react-doctor/no-document-write": "error",
|
|
288
|
+
"react-doctor/no-dynamic-import-path": "error",
|
|
289
|
+
"react-doctor/no-effect-chain": "error",
|
|
290
|
+
"react-doctor/no-effect-event-handler": "error",
|
|
291
|
+
"react-doctor/no-effect-event-in-deps": "error",
|
|
292
|
+
"react-doctor/no-effect-with-fresh-deps": "error",
|
|
293
|
+
"react-doctor/no-eval": "error",
|
|
294
|
+
"react-doctor/no-event-handler": "error",
|
|
295
|
+
"react-doctor/no-event-trigger-state": "error",
|
|
296
|
+
"react-doctor/no-fetch-in-effect": "error",
|
|
297
|
+
"react-doctor/no-flush-sync": "error",
|
|
298
|
+
"react-doctor/no-full-lodash-import": "error",
|
|
299
|
+
"react-doctor/no-giant-component": "error",
|
|
300
|
+
"react-doctor/no-global-css-variable-animation": "error",
|
|
301
|
+
"react-doctor/no-gray-on-colored-background": "error",
|
|
302
|
+
"react-doctor/no-img-lazy-with-high-fetchpriority": "error",
|
|
303
|
+
"react-doctor/no-initialize-state": "error",
|
|
304
|
+
"react-doctor/no-inline-bounce-easing": "error",
|
|
305
|
+
"react-doctor/no-inline-exhaustive-style": "error",
|
|
306
|
+
"react-doctor/no-inline-prop-on-memo-component": "error",
|
|
307
|
+
"react-doctor/no-json-parse-stringify-clone": "error",
|
|
308
|
+
"react-doctor/no-jsx-element-type": "error",
|
|
309
|
+
"react-doctor/no-large-animated-blur": "error",
|
|
310
|
+
"react-doctor/no-layout-property-animation": "error",
|
|
311
|
+
"react-doctor/no-layout-transition-inline": "error",
|
|
312
|
+
"react-doctor/no-legacy-class-lifecycles": "error",
|
|
313
|
+
"react-doctor/no-legacy-context-api": "error",
|
|
314
|
+
"react-doctor/no-long-transition-duration": "error",
|
|
315
|
+
"react-doctor/no-many-boolean-props": "error",
|
|
316
|
+
"react-doctor/no-mirror-prop-effect": "error",
|
|
317
|
+
"react-doctor/no-moment": "error",
|
|
318
|
+
"react-doctor/no-mutable-in-deps": "error",
|
|
319
|
+
"react-doctor/no-mutating-reducer-state": "error",
|
|
320
|
+
"react-doctor/no-nested-component-definition": "error",
|
|
321
|
+
"react-doctor/no-outline-none": "error",
|
|
322
|
+
"react-doctor/no-pass-data-to-parent": "error",
|
|
323
|
+
"react-doctor/no-pass-live-state-to-parent": "error",
|
|
324
|
+
"react-doctor/no-permanent-will-change": "error",
|
|
325
|
+
"react-doctor/no-polymorphic-children": "error",
|
|
326
|
+
"react-doctor/no-prevent-default": "error",
|
|
327
|
+
"react-doctor/no-prop-callback-in-effect": "error",
|
|
328
|
+
"react-doctor/no-random-key": "error",
|
|
329
|
+
"react-doctor/no-react-dom-deprecated-apis": "error",
|
|
330
|
+
"react-doctor/no-react19-deprecated-apis": "error",
|
|
331
|
+
"react-doctor/no-render-in-render": "error",
|
|
332
|
+
"react-doctor/no-render-prop-children": "error",
|
|
333
|
+
"react-doctor/no-reset-all-state-on-prop-change": "error",
|
|
334
|
+
"react-doctor/no-scale-from-zero": "error",
|
|
335
|
+
"react-doctor/no-secrets-in-client-code": "error",
|
|
336
|
+
"react-doctor/no-self-updating-effect": "error",
|
|
337
|
+
"react-doctor/no-set-state-in-render": "error",
|
|
338
|
+
"react-doctor/no-string-false-on-boolean-attribute": "error",
|
|
339
|
+
"react-doctor/no-sync-xhr": "error",
|
|
340
|
+
"react-doctor/no-tiny-text": "error",
|
|
341
|
+
"react-doctor/no-transition-all": "error",
|
|
342
|
+
"react-doctor/no-uncontrolled-input": "error",
|
|
343
|
+
"react-doctor/no-undeferred-third-party": "error",
|
|
344
|
+
"react-doctor/no-usememo-simple-expression": "error",
|
|
345
|
+
"react-doctor/prefer-dynamic-import": "error",
|
|
346
|
+
"react-doctor/prefer-explicit-variants": "error",
|
|
347
|
+
"react-doctor/prefer-html-dialog": "error",
|
|
348
|
+
"react-doctor/prefer-module-scope-pure-function": "error",
|
|
349
|
+
"react-doctor/prefer-module-scope-static-value": "error",
|
|
350
|
+
"react-doctor/prefer-stable-empty-fallback": "error",
|
|
351
|
+
"react-doctor/prefer-use-effect-event": "error",
|
|
352
|
+
"react-doctor/prefer-use-sync-external-store": "error",
|
|
353
|
+
"react-doctor/prefer-useReducer": "error",
|
|
354
|
+
"react-doctor/react-compiler-no-manual-memoization": "error",
|
|
355
|
+
"react-doctor/redux-useselector-inline-derivation": "error",
|
|
356
|
+
"react-doctor/redux-useselector-returns-new-collection": "error",
|
|
357
|
+
"react-doctor/rendering-animate-svg-wrapper": "error",
|
|
358
|
+
"react-doctor/rendering-conditional-render": "error",
|
|
359
|
+
"react-doctor/rendering-hoist-jsx": "error",
|
|
360
|
+
"react-doctor/rendering-hydration-mismatch-time": "error",
|
|
361
|
+
"react-doctor/rendering-hydration-no-flicker": "error",
|
|
362
|
+
"react-doctor/rendering-script-defer-async": "error",
|
|
363
|
+
"react-doctor/rendering-svg-precision": "error",
|
|
364
|
+
"react-doctor/rendering-usetransition-loading": "error",
|
|
365
|
+
"react-doctor/rerender-defer-reads-hook": "error",
|
|
366
|
+
"react-doctor/rerender-dependencies": "error",
|
|
367
|
+
"react-doctor/rerender-derived-state-from-hook": "error",
|
|
368
|
+
"react-doctor/rerender-functional-setstate": "error",
|
|
369
|
+
"react-doctor/rerender-lazy-ref-init": "error",
|
|
370
|
+
"react-doctor/rerender-lazy-state-init": "error",
|
|
371
|
+
"react-doctor/rerender-memo-before-early-return": "error",
|
|
372
|
+
"react-doctor/rerender-memo-with-default-value": "error",
|
|
373
|
+
"react-doctor/rerender-state-only-in-handlers": "error",
|
|
374
|
+
"react-doctor/rerender-transitions-scroll": "error",
|
|
375
|
+
"react-doctor/server-after-nonblocking": "error",
|
|
376
|
+
"react-doctor/server-auth-actions": "error",
|
|
377
|
+
"react-doctor/server-cache-with-object-literal": "error",
|
|
378
|
+
"react-doctor/server-dedup-props": "error",
|
|
379
|
+
"react-doctor/server-fetch-without-revalidate": "error",
|
|
380
|
+
"react-doctor/server-hoist-static-io": "error",
|
|
381
|
+
"react-doctor/server-no-mutable-module-state": "error",
|
|
382
|
+
"react-doctor/server-sequential-independent-await": "error",
|
|
383
|
+
"react-doctor/use-lazy-motion": "error",
|
|
384
|
+
"react-doctor/zod-v4-no-deprecated-error-apis": "error",
|
|
385
|
+
"react-doctor/zod-v4-no-deprecated-error-customization": "error",
|
|
386
|
+
"react-doctor/zod-v4-no-deprecated-schema-apis": "error",
|
|
387
|
+
"react-doctor/zod-v4-prefer-top-level-string-formats": "error",
|
|
388
|
+
"react-doctor/react-in-jsx-scope": "off",
|
|
389
|
+
"react-doctor/jsx-boolean-value": "off",
|
|
390
|
+
"react-doctor/jsx-handler-names": "off",
|
|
391
|
+
"react-doctor/jsx-props-no-spreading": "off",
|
|
392
|
+
"react-doctor/nextjs-missing-metadata": "off",
|
|
393
|
+
"react-doctor/nextjs-no-a-element": "off",
|
|
394
|
+
"react-doctor/nextjs-no-img-element": "off",
|
|
395
|
+
"react-doctor/preact-no-react-hooks-import": "off",
|
|
396
|
+
"react-doctor/no-multi-comp": "off",
|
|
397
|
+
"react-doctor/no-multi-component-file": "off",
|
|
398
|
+
"react-doctor/only-export-components": "off",
|
|
399
|
+
"tailwindcss/no-conflicting-classes": "error",
|
|
400
|
+
"tailwindcss/no-deprecated-classes": "error",
|
|
401
|
+
"tailwindcss/no-duplicate-classes": "warn",
|
|
402
|
+
"tailwindcss/no-unknown-classes": "error",
|
|
403
|
+
"tailwindcss/enforce-canonical": "warn",
|
|
404
|
+
"tailwindcss/no-unnecessary-arbitrary-value": "warn",
|
|
405
|
+
"tailwindcss/enforce-sort-order": "warn",
|
|
406
|
+
"tailwindcss/consistent-variant-order": "warn",
|
|
407
|
+
"tailwindcss/enforce-consistent-important-position": "warn",
|
|
408
|
+
"tailwindcss/no-unnecessary-whitespace": "warn",
|
|
409
|
+
"lazuee/prefer-alias": "error"
|
|
410
|
+
}
|
|
411
|
+
});
|
|
412
|
+
var js_plugins_default = config;
|
|
413
|
+
var selectJsPlugins = (pluginNames) => {
|
|
414
|
+
const names = new Set(pluginNames);
|
|
415
|
+
const isSelectedRule = ([ruleName]) => {
|
|
416
|
+
const [pluginName = ""] = ruleName.split("/");
|
|
417
|
+
return names.has(pluginName);
|
|
418
|
+
};
|
|
419
|
+
return defineConfig({
|
|
420
|
+
...config,
|
|
421
|
+
jsPlugins: jsPluginEntries.filter((plugin) => names.has(plugin.name)),
|
|
422
|
+
overrides: config.overrides?.map((override) => ({
|
|
423
|
+
...override,
|
|
424
|
+
rules: Object.fromEntries(Object.entries(override.rules ?? {}).filter(isSelectedRule))
|
|
425
|
+
})),
|
|
426
|
+
rules: Object.fromEntries(Object.entries(config.rules ?? {}).filter(isSelectedRule))
|
|
427
|
+
});
|
|
428
|
+
};
|
|
429
|
+
|
|
430
|
+
export { jsPluginSettings, selectJsPlugins, js_plugins_default };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
arrowParens: "always";
|
|
3
|
+
bracketSameLine: false;
|
|
4
|
+
bracketSpacing: true;
|
|
5
|
+
endOfLine: "lf";
|
|
6
|
+
ignorePatterns: string[];
|
|
7
|
+
jsxSingleQuote: false;
|
|
8
|
+
printWidth: number;
|
|
9
|
+
proseWrap: "never";
|
|
10
|
+
quoteProps: "as-needed";
|
|
11
|
+
semi: true;
|
|
12
|
+
singleQuote: false;
|
|
13
|
+
sortImports: {
|
|
14
|
+
ignoreCase: true;
|
|
15
|
+
newlinesBetween: true;
|
|
16
|
+
order: "asc";
|
|
17
|
+
};
|
|
18
|
+
sortPackageJson: {
|
|
19
|
+
sortScripts: true;
|
|
20
|
+
};
|
|
21
|
+
sortTailwindcss: {
|
|
22
|
+
attributes: string[];
|
|
23
|
+
functions: string[];
|
|
24
|
+
};
|
|
25
|
+
tabWidth: number;
|
|
26
|
+
trailingComma: "es5";
|
|
27
|
+
useTabs: false;
|
|
28
|
+
overrides: {
|
|
29
|
+
files: string[];
|
|
30
|
+
options: {
|
|
31
|
+
tabWidth: number;
|
|
32
|
+
trailingComma: "all";
|
|
33
|
+
};
|
|
34
|
+
}[];
|
|
35
|
+
};
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ignorePatterns
|
|
3
|
+
} from "../../chunk-41590bpf.js";
|
|
4
|
+
import"../../chunk-5wgwscd0.js";
|
|
5
|
+
|
|
6
|
+
// tools/oxfmt/index.ts
|
|
7
|
+
import { defineConfig } from "oxfmt";
|
|
8
|
+
var oxfmt_default = defineConfig({
|
|
9
|
+
arrowParens: "always",
|
|
10
|
+
bracketSameLine: false,
|
|
11
|
+
bracketSpacing: true,
|
|
12
|
+
endOfLine: "lf",
|
|
13
|
+
ignorePatterns,
|
|
14
|
+
jsxSingleQuote: false,
|
|
15
|
+
printWidth: 80,
|
|
16
|
+
proseWrap: "never",
|
|
17
|
+
quoteProps: "as-needed",
|
|
18
|
+
semi: true,
|
|
19
|
+
singleQuote: false,
|
|
20
|
+
sortImports: {
|
|
21
|
+
ignoreCase: true,
|
|
22
|
+
newlinesBetween: true,
|
|
23
|
+
order: "asc"
|
|
24
|
+
},
|
|
25
|
+
sortPackageJson: {
|
|
26
|
+
sortScripts: true
|
|
27
|
+
},
|
|
28
|
+
sortTailwindcss: {
|
|
29
|
+
attributes: [
|
|
30
|
+
"class",
|
|
31
|
+
"className",
|
|
32
|
+
"leave",
|
|
33
|
+
"leaveFrom",
|
|
34
|
+
"leaveTo",
|
|
35
|
+
"enter",
|
|
36
|
+
"enterFrom",
|
|
37
|
+
"enterTo"
|
|
38
|
+
],
|
|
39
|
+
functions: ["clsx", "cva", "tw", "twMerge", "cn", "twJoin", "tv"]
|
|
40
|
+
},
|
|
41
|
+
tabWidth: 2,
|
|
42
|
+
trailingComma: "es5",
|
|
43
|
+
useTabs: false,
|
|
44
|
+
overrides: [
|
|
45
|
+
{
|
|
46
|
+
files: ["*.json", "*.jsonc"],
|
|
47
|
+
options: {
|
|
48
|
+
tabWidth: 2,
|
|
49
|
+
trailingComma: "all"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
});
|
|
54
|
+
export {
|
|
55
|
+
oxfmt_default as default
|
|
56
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const antiSlopConfig: {
|
|
2
|
+
jsPlugins: {
|
|
3
|
+
name: string;
|
|
4
|
+
specifier: string;
|
|
5
|
+
}[];
|
|
6
|
+
rules: {
|
|
7
|
+
"anti-slop/no-chained-type-assertions": "error";
|
|
8
|
+
"anti-slop/no-conditional-empty-object-spread": "error";
|
|
9
|
+
"anti-slop/no-known-value-widening": "error";
|
|
10
|
+
"anti-slop/no-module-mocking": "error";
|
|
11
|
+
"anti-slop/no-object-parameters": "error";
|
|
12
|
+
"anti-slop/no-reflect-apply": "error";
|
|
13
|
+
"anti-slop/no-reflect-get": "error";
|
|
14
|
+
"anti-slop/no-runtime-typeof": ["error", {
|
|
15
|
+
allowInTypeGuards: boolean;
|
|
16
|
+
}];
|
|
17
|
+
"anti-slop/no-shape-in-symbol-names": "error";
|
|
18
|
+
"anti-slop/no-unknown-parameters": "error";
|
|
19
|
+
"anti-slop/no-unknown-returns": "error";
|
|
20
|
+
"anti-slop/no-unknown-type-aliases": "error";
|
|
21
|
+
"anti-slop/no-unsafe-dictionary-type": "error";
|
|
22
|
+
"anti-slop/no-widen-then-assert": "error";
|
|
23
|
+
"anti-slop/require-safety-comment-for-type-assertion": "error";
|
|
24
|
+
"typescript/consistent-indexed-object-style": "off";
|
|
25
|
+
"unicorn/no-immediate-mutation": "off";
|
|
26
|
+
};
|
|
27
|
+
};
|