@adbayb/stack 2.40.0-next-6537284 → 2.40.0-next-ae97ae3
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/oxfmt/index.ts +4 -2
- package/configs/oxlint/index.ts +13 -4
- package/dist/configs/oxfmt.d.ts +3 -1
- package/dist/configs/oxfmt.js +2 -2
- package/dist/configs/oxlint.d.ts +28 -1
- package/dist/configs/oxlint.js +54 -44
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/configs/oxfmt/index.ts
CHANGED
|
@@ -29,10 +29,12 @@ const config = defineConfig({
|
|
|
29
29
|
vueIndentScriptAndStyle: false,
|
|
30
30
|
});
|
|
31
31
|
|
|
32
|
-
export const createConfig = (
|
|
32
|
+
export const createConfig = ({
|
|
33
|
+
overrides,
|
|
34
|
+
}: Required<Pick<OxfmtConfig, "overrides">>): OxfmtConfig => {
|
|
33
35
|
return {
|
|
34
36
|
...config,
|
|
35
|
-
|
|
37
|
+
overrides,
|
|
36
38
|
};
|
|
37
39
|
};
|
|
38
40
|
|
package/configs/oxlint/index.ts
CHANGED
|
@@ -73,6 +73,12 @@ const config = defineConfig({
|
|
|
73
73
|
"react/forbid-component-props": "off",
|
|
74
74
|
},
|
|
75
75
|
},
|
|
76
|
+
{
|
|
77
|
+
files: ["**/*.d.ts"],
|
|
78
|
+
rules: {
|
|
79
|
+
"unicorn/require-module-specifiers": "off",
|
|
80
|
+
},
|
|
81
|
+
},
|
|
76
82
|
],
|
|
77
83
|
plugins: [
|
|
78
84
|
"eslint",
|
|
@@ -263,25 +269,28 @@ const config = defineConfig({
|
|
|
263
269
|
"sort-keys": "off", // Already supported by ESLint Perfectionist
|
|
264
270
|
"sort-vars": "off", // Already supported by ESLint Perfectionist
|
|
265
271
|
"strict-boolean-expressions": "off",
|
|
272
|
+
"typescript/ban-types": "off", // Deprecated
|
|
266
273
|
"typescript/consistent-return": "off",
|
|
267
274
|
"typescript/consistent-type-definitions": ["error", "type"],
|
|
268
275
|
"typescript/explicit-function-return-type": "off",
|
|
269
276
|
"typescript/explicit-module-boundary-types": "off",
|
|
270
277
|
"typescript/no-unsafe-type-assertion": "off",
|
|
278
|
+
"typescript/non-nullable-type-assertion-style": "off",
|
|
271
279
|
"unicorn/filename-case": "off",
|
|
272
280
|
"unicorn/import-style": "off",
|
|
273
281
|
"unicorn/no-array-for-each": "off",
|
|
274
282
|
"unicorn/no-array-reduce": "off",
|
|
283
|
+
"unicorn/no-typeof-undefined": ["error", { checkGlobalVariables: true }],
|
|
275
284
|
"unicorn/no-useless-undefined": "off",
|
|
276
285
|
},
|
|
277
286
|
});
|
|
278
287
|
|
|
279
|
-
export const createConfig = (
|
|
280
|
-
|
|
281
|
-
): OxlintConfig => {
|
|
288
|
+
export const createConfig = ({
|
|
289
|
+
ignorePatterns,
|
|
290
|
+
}: Required<Pick<OxlintConfig, "ignorePatterns">>): OxlintConfig => {
|
|
282
291
|
return {
|
|
283
292
|
...config,
|
|
284
|
-
|
|
293
|
+
ignorePatterns,
|
|
285
294
|
};
|
|
286
295
|
};
|
|
287
296
|
|
package/dist/configs/oxfmt.d.ts
CHANGED
|
@@ -28,6 +28,8 @@ declare const config: {
|
|
|
28
28
|
useTabs: true;
|
|
29
29
|
vueIndentScriptAndStyle: false;
|
|
30
30
|
};
|
|
31
|
-
declare const createConfig: (
|
|
31
|
+
declare const createConfig: ({
|
|
32
|
+
overrides
|
|
33
|
+
}: Required<Pick<OxfmtConfig, "overrides">>) => OxfmtConfig;
|
|
32
34
|
//#endregion
|
|
33
35
|
export { createConfig, config as default };
|
package/dist/configs/oxfmt.js
CHANGED
package/dist/configs/oxlint.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ declare const config: {
|
|
|
43
43
|
"import/no-anonymous-default-export"?: never;
|
|
44
44
|
"import/no-default-export"?: never;
|
|
45
45
|
"react/forbid-component-props"?: never;
|
|
46
|
+
"unicorn/require-module-specifiers"?: never;
|
|
46
47
|
};
|
|
47
48
|
} | {
|
|
48
49
|
files: string[];
|
|
@@ -59,6 +60,25 @@ declare const config: {
|
|
|
59
60
|
"vitest/require-mock-type-parameters"?: never;
|
|
60
61
|
"vitest/require-test-timeout"?: never;
|
|
61
62
|
"vitest/valid-title"?: never;
|
|
63
|
+
"unicorn/require-module-specifiers"?: never;
|
|
64
|
+
};
|
|
65
|
+
plugins?: never;
|
|
66
|
+
} | {
|
|
67
|
+
files: string[];
|
|
68
|
+
rules: {
|
|
69
|
+
"unicorn/require-module-specifiers": "off";
|
|
70
|
+
"vitest/consistent-test-it"?: never;
|
|
71
|
+
"vitest/no-hooks"?: never;
|
|
72
|
+
"vitest/no-importing-vitest-globals"?: never;
|
|
73
|
+
"vitest/prefer-to-be-falsy"?: never;
|
|
74
|
+
"vitest/prefer-to-be-truthy"?: never;
|
|
75
|
+
"vitest/require-mock-type-parameters"?: never;
|
|
76
|
+
"vitest/require-test-timeout"?: never;
|
|
77
|
+
"vitest/valid-title"?: never;
|
|
78
|
+
"e18e/prefer-static-regex"?: never;
|
|
79
|
+
"import/no-anonymous-default-export"?: never;
|
|
80
|
+
"import/no-default-export"?: never;
|
|
81
|
+
"react/forbid-component-props"?: never;
|
|
62
82
|
};
|
|
63
83
|
plugins?: never;
|
|
64
84
|
})[];
|
|
@@ -182,18 +202,25 @@ declare const config: {
|
|
|
182
202
|
"sort-keys": "off";
|
|
183
203
|
"sort-vars": "off";
|
|
184
204
|
"strict-boolean-expressions": "off";
|
|
205
|
+
"typescript/ban-types": "off";
|
|
185
206
|
"typescript/consistent-return": "off";
|
|
186
207
|
"typescript/consistent-type-definitions": ["error", "type"];
|
|
187
208
|
"typescript/explicit-function-return-type": "off";
|
|
188
209
|
"typescript/explicit-module-boundary-types": "off";
|
|
189
210
|
"typescript/no-unsafe-type-assertion": "off";
|
|
211
|
+
"typescript/non-nullable-type-assertion-style": "off";
|
|
190
212
|
"unicorn/filename-case": "off";
|
|
191
213
|
"unicorn/import-style": "off";
|
|
192
214
|
"unicorn/no-array-for-each": "off";
|
|
193
215
|
"unicorn/no-array-reduce": "off";
|
|
216
|
+
"unicorn/no-typeof-undefined": ["error", {
|
|
217
|
+
checkGlobalVariables: true;
|
|
218
|
+
}];
|
|
194
219
|
"unicorn/no-useless-undefined": "off";
|
|
195
220
|
};
|
|
196
221
|
};
|
|
197
|
-
declare const createConfig: (
|
|
222
|
+
declare const createConfig: ({
|
|
223
|
+
ignorePatterns
|
|
224
|
+
}: Required<Pick<OxlintConfig, "ignorePatterns">>) => OxlintConfig;
|
|
198
225
|
//#endregion
|
|
199
226
|
export { createConfig, config as default };
|
package/dist/configs/oxlint.js
CHANGED
|
@@ -41,49 +41,56 @@ const config = defineConfig({
|
|
|
41
41
|
typeAware: true,
|
|
42
42
|
typeCheck: true
|
|
43
43
|
},
|
|
44
|
-
overrides: [
|
|
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
|
-
|
|
44
|
+
overrides: [
|
|
45
|
+
{
|
|
46
|
+
files: TEST_LIKE_FILES,
|
|
47
|
+
plugins: ["vitest"],
|
|
48
|
+
rules: {
|
|
49
|
+
"vitest/consistent-test-it": ["error", {
|
|
50
|
+
fn: "test",
|
|
51
|
+
withinDescribe: "test"
|
|
52
|
+
}],
|
|
53
|
+
"vitest/no-hooks": "off",
|
|
54
|
+
"vitest/no-importing-vitest-globals": "off",
|
|
55
|
+
"vitest/prefer-to-be-falsy": "off",
|
|
56
|
+
"vitest/prefer-to-be-truthy": "off",
|
|
57
|
+
"vitest/require-mock-type-parameters": "off",
|
|
58
|
+
"vitest/require-test-timeout": "off",
|
|
59
|
+
"vitest/valid-title": ["error", {
|
|
60
|
+
allowArguments: true,
|
|
61
|
+
mustMatch: { test: ["^should "] }
|
|
62
|
+
}]
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
files: [
|
|
67
|
+
...TEST_LIKE_FILES,
|
|
68
|
+
"**/.config/**",
|
|
69
|
+
"**/.configs/**",
|
|
70
|
+
"**/config/**",
|
|
71
|
+
"**/configs/**",
|
|
72
|
+
"**/examples/**",
|
|
73
|
+
"**/scripts/**",
|
|
74
|
+
"**/tools/**",
|
|
75
|
+
`**/config.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
|
|
76
|
+
`**/configs.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
|
|
77
|
+
`**/*.config.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
|
|
78
|
+
`**/*.configs.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
|
|
79
|
+
`**/stories.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
|
|
80
|
+
`**/*.stories.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`
|
|
81
|
+
],
|
|
82
|
+
rules: {
|
|
83
|
+
"e18e/prefer-static-regex": "off",
|
|
84
|
+
"import/no-anonymous-default-export": "off",
|
|
85
|
+
"import/no-default-export": "off",
|
|
86
|
+
"react/forbid-component-props": "off"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
files: ["**/*.d.ts"],
|
|
91
|
+
rules: { "unicorn/require-module-specifiers": "off" }
|
|
85
92
|
}
|
|
86
|
-
|
|
93
|
+
],
|
|
87
94
|
plugins: [
|
|
88
95
|
"eslint",
|
|
89
96
|
"import",
|
|
@@ -273,22 +280,25 @@ const config = defineConfig({
|
|
|
273
280
|
"sort-keys": "off",
|
|
274
281
|
"sort-vars": "off",
|
|
275
282
|
"strict-boolean-expressions": "off",
|
|
283
|
+
"typescript/ban-types": "off",
|
|
276
284
|
"typescript/consistent-return": "off",
|
|
277
285
|
"typescript/consistent-type-definitions": ["error", "type"],
|
|
278
286
|
"typescript/explicit-function-return-type": "off",
|
|
279
287
|
"typescript/explicit-module-boundary-types": "off",
|
|
280
288
|
"typescript/no-unsafe-type-assertion": "off",
|
|
289
|
+
"typescript/non-nullable-type-assertion-style": "off",
|
|
281
290
|
"unicorn/filename-case": "off",
|
|
282
291
|
"unicorn/import-style": "off",
|
|
283
292
|
"unicorn/no-array-for-each": "off",
|
|
284
293
|
"unicorn/no-array-reduce": "off",
|
|
294
|
+
"unicorn/no-typeof-undefined": ["error", { checkGlobalVariables: true }],
|
|
285
295
|
"unicorn/no-useless-undefined": "off"
|
|
286
296
|
}
|
|
287
297
|
});
|
|
288
|
-
const createConfig = (
|
|
298
|
+
const createConfig = ({ ignorePatterns }) => {
|
|
289
299
|
return {
|
|
290
300
|
...config,
|
|
291
|
-
|
|
301
|
+
ignorePatterns
|
|
292
302
|
};
|
|
293
303
|
};
|
|
294
304
|
|
package/dist/index.js
CHANGED