@adbayb/stack 2.40.0-next-5ef9eef → 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 +12 -4
- package/dist/configs/oxfmt.d.ts +3 -1
- package/dist/configs/oxfmt.js +2 -2
- package/dist/configs/oxlint.d.ts +27 -1
- package/dist/configs/oxlint.js +53 -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",
|
|
@@ -269,20 +275,22 @@ const config = defineConfig({
|
|
|
269
275
|
"typescript/explicit-function-return-type": "off",
|
|
270
276
|
"typescript/explicit-module-boundary-types": "off",
|
|
271
277
|
"typescript/no-unsafe-type-assertion": "off",
|
|
278
|
+
"typescript/non-nullable-type-assertion-style": "off",
|
|
272
279
|
"unicorn/filename-case": "off",
|
|
273
280
|
"unicorn/import-style": "off",
|
|
274
281
|
"unicorn/no-array-for-each": "off",
|
|
275
282
|
"unicorn/no-array-reduce": "off",
|
|
283
|
+
"unicorn/no-typeof-undefined": ["error", { checkGlobalVariables: true }],
|
|
276
284
|
"unicorn/no-useless-undefined": "off",
|
|
277
285
|
},
|
|
278
286
|
});
|
|
279
287
|
|
|
280
|
-
export const createConfig = (
|
|
281
|
-
|
|
282
|
-
): OxlintConfig => {
|
|
288
|
+
export const createConfig = ({
|
|
289
|
+
ignorePatterns,
|
|
290
|
+
}: Required<Pick<OxlintConfig, "ignorePatterns">>): OxlintConfig => {
|
|
283
291
|
return {
|
|
284
292
|
...config,
|
|
285
|
-
|
|
293
|
+
ignorePatterns,
|
|
286
294
|
};
|
|
287
295
|
};
|
|
288
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
|
})[];
|
|
@@ -188,13 +208,19 @@ declare const config: {
|
|
|
188
208
|
"typescript/explicit-function-return-type": "off";
|
|
189
209
|
"typescript/explicit-module-boundary-types": "off";
|
|
190
210
|
"typescript/no-unsafe-type-assertion": "off";
|
|
211
|
+
"typescript/non-nullable-type-assertion-style": "off";
|
|
191
212
|
"unicorn/filename-case": "off";
|
|
192
213
|
"unicorn/import-style": "off";
|
|
193
214
|
"unicorn/no-array-for-each": "off";
|
|
194
215
|
"unicorn/no-array-reduce": "off";
|
|
216
|
+
"unicorn/no-typeof-undefined": ["error", {
|
|
217
|
+
checkGlobalVariables: true;
|
|
218
|
+
}];
|
|
195
219
|
"unicorn/no-useless-undefined": "off";
|
|
196
220
|
};
|
|
197
221
|
};
|
|
198
|
-
declare const createConfig: (
|
|
222
|
+
declare const createConfig: ({
|
|
223
|
+
ignorePatterns
|
|
224
|
+
}: Required<Pick<OxlintConfig, "ignorePatterns">>) => OxlintConfig;
|
|
199
225
|
//#endregion
|
|
200
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",
|
|
@@ -279,17 +286,19 @@ const config = defineConfig({
|
|
|
279
286
|
"typescript/explicit-function-return-type": "off",
|
|
280
287
|
"typescript/explicit-module-boundary-types": "off",
|
|
281
288
|
"typescript/no-unsafe-type-assertion": "off",
|
|
289
|
+
"typescript/non-nullable-type-assertion-style": "off",
|
|
282
290
|
"unicorn/filename-case": "off",
|
|
283
291
|
"unicorn/import-style": "off",
|
|
284
292
|
"unicorn/no-array-for-each": "off",
|
|
285
293
|
"unicorn/no-array-reduce": "off",
|
|
294
|
+
"unicorn/no-typeof-undefined": ["error", { checkGlobalVariables: true }],
|
|
286
295
|
"unicorn/no-useless-undefined": "off"
|
|
287
296
|
}
|
|
288
297
|
});
|
|
289
|
-
const createConfig = (
|
|
298
|
+
const createConfig = ({ ignorePatterns }) => {
|
|
290
299
|
return {
|
|
291
300
|
...config,
|
|
292
|
-
|
|
301
|
+
ignorePatterns
|
|
293
302
|
};
|
|
294
303
|
};
|
|
295
304
|
|
package/dist/index.js
CHANGED