@adbayb/stack 2.40.0-next-96d3848 → 2.40.0-next-bab76dc
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/configs/oxlint/index.ts +21 -4
- package/dist/configs/oxlint.d.ts +16 -0
- package/dist/configs/oxlint.js +28 -7
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/configs/oxlint/index.ts
CHANGED
|
@@ -37,7 +37,10 @@ const config = defineConfig({
|
|
|
37
37
|
plugins: ["vitest"],
|
|
38
38
|
rules: {
|
|
39
39
|
"vitest/consistent-test-it": ["error", { fn: "test", withinDescribe: "test" }],
|
|
40
|
+
"vitest/no-hooks": "off",
|
|
40
41
|
"vitest/no-importing-vitest-globals": "off",
|
|
42
|
+
"vitest/prefer-to-be-truthy": "off",
|
|
43
|
+
"vitest/require-mock-type-parameters": "off",
|
|
41
44
|
"vitest/require-test-timeout": "off",
|
|
42
45
|
"vitest/valid-title": ["error", { mustMatch: { test: ["^should "] } }],
|
|
43
46
|
},
|
|
@@ -102,16 +105,20 @@ const config = defineConfig({
|
|
|
102
105
|
{
|
|
103
106
|
customGroups: [
|
|
104
107
|
{
|
|
105
|
-
elementNamePattern:
|
|
108
|
+
elementNamePattern:
|
|
109
|
+
"^(as|children|id|identifier|htmlFor|key|ref)$",
|
|
106
110
|
groupName: "id-like",
|
|
107
111
|
},
|
|
108
112
|
{
|
|
109
|
-
elementNamePattern:
|
|
110
|
-
"^(label|metadata|path_pattern|name|title)$",
|
|
113
|
+
elementNamePattern: "^(label|name|title)$",
|
|
111
114
|
groupName: "name-like",
|
|
112
115
|
},
|
|
116
|
+
{
|
|
117
|
+
elementNamePattern: "^(description|metadata)$",
|
|
118
|
+
groupName: "metadata-like",
|
|
119
|
+
},
|
|
113
120
|
],
|
|
114
|
-
groups: ["id-like", "name-like", "unknown"],
|
|
121
|
+
groups: ["id-like", "name-like", "metadata-like", "unknown"],
|
|
115
122
|
type: "natural",
|
|
116
123
|
},
|
|
117
124
|
],
|
|
@@ -190,6 +197,7 @@ const config = defineConfig({
|
|
|
190
197
|
],
|
|
191
198
|
"@stylistic/spaced-comment": "error",
|
|
192
199
|
"arrow-body-style": ["error", "always"],
|
|
200
|
+
"class-methods-use-this": "off",
|
|
193
201
|
"id-length": "off",
|
|
194
202
|
"import/exports-last": "off",
|
|
195
203
|
"import/group-exports": "off",
|
|
@@ -206,12 +214,14 @@ const config = defineConfig({
|
|
|
206
214
|
"max-classes-per-file": "off",
|
|
207
215
|
"max-lines": "off",
|
|
208
216
|
"max-lines-per-function": "off",
|
|
217
|
+
"max-params": "off",
|
|
209
218
|
"max-statements": "off",
|
|
210
219
|
"nextjs/google-font-display": "error",
|
|
211
220
|
"nextjs/google-font-preconnect": "error",
|
|
212
221
|
"nextjs/no-sync-scripts": "error",
|
|
213
222
|
"nextjs/no-unwanted-polyfillio": "error",
|
|
214
223
|
"no-async-await": "off",
|
|
224
|
+
"no-bitwise": "off",
|
|
215
225
|
"no-console": "off",
|
|
216
226
|
"no-continue": "off",
|
|
217
227
|
"no-duplicate-imports": ["error", { allowSeparateTypeImports: true }],
|
|
@@ -226,6 +236,7 @@ const config = defineConfig({
|
|
|
226
236
|
"no-use-before-define": "off",
|
|
227
237
|
"no-void": "off",
|
|
228
238
|
"no-warning-comments": "off",
|
|
239
|
+
"node/no-process-env": "off",
|
|
229
240
|
"node/no-sync": "off",
|
|
230
241
|
"perfectionist/sort-imports": "off", // Already supported by Oxfmt
|
|
231
242
|
"perfectionist/sort-named-imports": "off", // Already supported by eslint/sort-imports
|
|
@@ -234,6 +245,12 @@ const config = defineConfig({
|
|
|
234
245
|
"react/jsx-filename-extension": ["error", { extensions: ["jsx", "tsx"] }],
|
|
235
246
|
"react/jsx-max-depth": "off",
|
|
236
247
|
"react/jsx-no-literals": "off",
|
|
248
|
+
"react/jsx-props-no-spreading": "off",
|
|
249
|
+
"react/no-multi-comp": "off",
|
|
250
|
+
"react/prefer-function-component": [
|
|
251
|
+
"error",
|
|
252
|
+
{ allowErrorBoundary: true, allowJsxUtilityClass: true },
|
|
253
|
+
],
|
|
237
254
|
"react/react-in-jsx-scope": "off",
|
|
238
255
|
"sort-imports": "off", // Already supported by ESLint Perfectionist
|
|
239
256
|
"sort-keys": "off", // Already supported by ESLint Perfectionist
|
package/dist/configs/oxlint.d.ts
CHANGED
|
@@ -27,7 +27,10 @@ declare const config: {
|
|
|
27
27
|
fn: "test";
|
|
28
28
|
withinDescribe: "test";
|
|
29
29
|
}];
|
|
30
|
+
"vitest/no-hooks": "off";
|
|
30
31
|
"vitest/no-importing-vitest-globals": "off";
|
|
32
|
+
"vitest/prefer-to-be-truthy": "off";
|
|
33
|
+
"vitest/require-mock-type-parameters": "off";
|
|
31
34
|
"vitest/require-test-timeout": "off";
|
|
32
35
|
"vitest/valid-title": ["error", {
|
|
33
36
|
mustMatch: {
|
|
@@ -47,7 +50,10 @@ declare const config: {
|
|
|
47
50
|
"import/no-default-export": "off";
|
|
48
51
|
"react/forbid-component-props": "off";
|
|
49
52
|
"vitest/consistent-test-it"?: never;
|
|
53
|
+
"vitest/no-hooks"?: never;
|
|
50
54
|
"vitest/no-importing-vitest-globals"?: never;
|
|
55
|
+
"vitest/prefer-to-be-truthy"?: never;
|
|
56
|
+
"vitest/require-mock-type-parameters"?: never;
|
|
51
57
|
"vitest/require-test-timeout"?: never;
|
|
52
58
|
"vitest/valid-title"?: never;
|
|
53
59
|
};
|
|
@@ -107,6 +113,7 @@ declare const config: {
|
|
|
107
113
|
}];
|
|
108
114
|
"@stylistic/spaced-comment": "error";
|
|
109
115
|
"arrow-body-style": ["error", "always"];
|
|
116
|
+
"class-methods-use-this": "off";
|
|
110
117
|
"id-length": "off";
|
|
111
118
|
"import/exports-last": "off";
|
|
112
119
|
"import/group-exports": "off";
|
|
@@ -123,12 +130,14 @@ declare const config: {
|
|
|
123
130
|
"max-classes-per-file": "off";
|
|
124
131
|
"max-lines": "off";
|
|
125
132
|
"max-lines-per-function": "off";
|
|
133
|
+
"max-params": "off";
|
|
126
134
|
"max-statements": "off";
|
|
127
135
|
"nextjs/google-font-display": "error";
|
|
128
136
|
"nextjs/google-font-preconnect": "error";
|
|
129
137
|
"nextjs/no-sync-scripts": "error";
|
|
130
138
|
"nextjs/no-unwanted-polyfillio": "error";
|
|
131
139
|
"no-async-await": "off";
|
|
140
|
+
"no-bitwise": "off";
|
|
132
141
|
"no-console": "off";
|
|
133
142
|
"no-continue": "off";
|
|
134
143
|
"no-duplicate-imports": ["error", {
|
|
@@ -145,6 +154,7 @@ declare const config: {
|
|
|
145
154
|
"no-use-before-define": "off";
|
|
146
155
|
"no-void": "off";
|
|
147
156
|
"no-warning-comments": "off";
|
|
157
|
+
"node/no-process-env": "off";
|
|
148
158
|
"node/no-sync": "off";
|
|
149
159
|
"perfectionist/sort-imports": "off";
|
|
150
160
|
"perfectionist/sort-named-imports": "off";
|
|
@@ -155,6 +165,12 @@ declare const config: {
|
|
|
155
165
|
}];
|
|
156
166
|
"react/jsx-max-depth": "off";
|
|
157
167
|
"react/jsx-no-literals": "off";
|
|
168
|
+
"react/jsx-props-no-spreading": "off";
|
|
169
|
+
"react/no-multi-comp": "off";
|
|
170
|
+
"react/prefer-function-component": ["error", {
|
|
171
|
+
allowErrorBoundary: true;
|
|
172
|
+
allowJsxUtilityClass: true;
|
|
173
|
+
}];
|
|
158
174
|
"react/react-in-jsx-scope": "off";
|
|
159
175
|
"sort-imports": "off";
|
|
160
176
|
"sort-keys": "off";
|
package/dist/configs/oxlint.js
CHANGED
|
@@ -49,7 +49,10 @@ const config = defineConfig({
|
|
|
49
49
|
fn: "test",
|
|
50
50
|
withinDescribe: "test"
|
|
51
51
|
}],
|
|
52
|
+
"vitest/no-hooks": "off",
|
|
52
53
|
"vitest/no-importing-vitest-globals": "off",
|
|
54
|
+
"vitest/prefer-to-be-truthy": "off",
|
|
55
|
+
"vitest/require-mock-type-parameters": "off",
|
|
53
56
|
"vitest/require-test-timeout": "off",
|
|
54
57
|
"vitest/valid-title": ["error", { mustMatch: { test: ["^should "] } }]
|
|
55
58
|
}
|
|
@@ -105,16 +108,24 @@ const config = defineConfig({
|
|
|
105
108
|
"sort-variable-declarations"
|
|
106
109
|
].map((ruleName) => {
|
|
107
110
|
return [`perfectionist/${ruleName}`, ["error", {
|
|
108
|
-
customGroups: [
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
111
|
+
customGroups: [
|
|
112
|
+
{
|
|
113
|
+
elementNamePattern: "^(as|children|id|identifier|htmlFor|key|ref)$",
|
|
114
|
+
groupName: "id-like"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
elementNamePattern: "^(label|name|title)$",
|
|
118
|
+
groupName: "name-like"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
elementNamePattern: "^(description|metadata)$",
|
|
122
|
+
groupName: "metadata-like"
|
|
123
|
+
}
|
|
124
|
+
],
|
|
115
125
|
groups: [
|
|
116
126
|
"id-like",
|
|
117
127
|
"name-like",
|
|
128
|
+
"metadata-like",
|
|
118
129
|
"unknown"
|
|
119
130
|
],
|
|
120
131
|
type: "natural"
|
|
@@ -196,6 +207,7 @@ const config = defineConfig({
|
|
|
196
207
|
],
|
|
197
208
|
"@stylistic/spaced-comment": "error",
|
|
198
209
|
"arrow-body-style": ["error", "always"],
|
|
210
|
+
"class-methods-use-this": "off",
|
|
199
211
|
"id-length": "off",
|
|
200
212
|
"import/exports-last": "off",
|
|
201
213
|
"import/group-exports": "off",
|
|
@@ -212,12 +224,14 @@ const config = defineConfig({
|
|
|
212
224
|
"max-classes-per-file": "off",
|
|
213
225
|
"max-lines": "off",
|
|
214
226
|
"max-lines-per-function": "off",
|
|
227
|
+
"max-params": "off",
|
|
215
228
|
"max-statements": "off",
|
|
216
229
|
"nextjs/google-font-display": "error",
|
|
217
230
|
"nextjs/google-font-preconnect": "error",
|
|
218
231
|
"nextjs/no-sync-scripts": "error",
|
|
219
232
|
"nextjs/no-unwanted-polyfillio": "error",
|
|
220
233
|
"no-async-await": "off",
|
|
234
|
+
"no-bitwise": "off",
|
|
221
235
|
"no-console": "off",
|
|
222
236
|
"no-continue": "off",
|
|
223
237
|
"no-duplicate-imports": ["error", { allowSeparateTypeImports: true }],
|
|
@@ -232,6 +246,7 @@ const config = defineConfig({
|
|
|
232
246
|
"no-use-before-define": "off",
|
|
233
247
|
"no-void": "off",
|
|
234
248
|
"no-warning-comments": "off",
|
|
249
|
+
"node/no-process-env": "off",
|
|
235
250
|
"node/no-sync": "off",
|
|
236
251
|
"perfectionist/sort-imports": "off",
|
|
237
252
|
"perfectionist/sort-named-imports": "off",
|
|
@@ -240,6 +255,12 @@ const config = defineConfig({
|
|
|
240
255
|
"react/jsx-filename-extension": ["error", { extensions: ["jsx", "tsx"] }],
|
|
241
256
|
"react/jsx-max-depth": "off",
|
|
242
257
|
"react/jsx-no-literals": "off",
|
|
258
|
+
"react/jsx-props-no-spreading": "off",
|
|
259
|
+
"react/no-multi-comp": "off",
|
|
260
|
+
"react/prefer-function-component": ["error", {
|
|
261
|
+
allowErrorBoundary: true,
|
|
262
|
+
allowJsxUtilityClass: true
|
|
263
|
+
}],
|
|
243
264
|
"react/react-in-jsx-scope": "off",
|
|
244
265
|
"sort-imports": "off",
|
|
245
266
|
"sort-keys": "off",
|
package/dist/index.js
CHANGED
|
@@ -318,8 +318,8 @@ const createCheckCommand = (program) => {
|
|
|
318
318
|
}).option({
|
|
319
319
|
key: "filter",
|
|
320
320
|
name: "filter",
|
|
321
|
-
|
|
322
|
-
|
|
321
|
+
description: `Filter the compliance check to run (accepted value: ${ONLY_VALUES.join(", ")})`,
|
|
322
|
+
defaultValue: void 0
|
|
323
323
|
}).task({
|
|
324
324
|
handler(_, argv) {
|
|
325
325
|
logCheckableFiles(argv.operands);
|
|
@@ -442,7 +442,7 @@ const PRESERVE_FILES = ["node_modules"];
|
|
|
442
442
|
|
|
443
443
|
//#endregion
|
|
444
444
|
//#region package.json
|
|
445
|
-
var version = "2.40.0-next-
|
|
445
|
+
var version = "2.40.0-next-bab76dc";
|
|
446
446
|
|
|
447
447
|
//#endregion
|
|
448
448
|
//#region src/commands/create.ts
|