@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.
@@ -29,10 +29,12 @@ const config = defineConfig({
29
29
  vueIndentScriptAndStyle: false,
30
30
  });
31
31
 
32
- export const createConfig = (input: Required<Pick<OxfmtConfig, "overrides">>): OxfmtConfig => {
32
+ export const createConfig = ({
33
+ overrides,
34
+ }: Required<Pick<OxfmtConfig, "overrides">>): OxfmtConfig => {
33
35
  return {
34
36
  ...config,
35
- ...input,
37
+ overrides,
36
38
  };
37
39
  };
38
40
 
@@ -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
- input: Required<Pick<OxlintConfig, "ignorePatterns">>,
281
- ): OxlintConfig => {
288
+ export const createConfig = ({
289
+ ignorePatterns,
290
+ }: Required<Pick<OxlintConfig, "ignorePatterns">>): OxlintConfig => {
282
291
  return {
283
292
  ...config,
284
- ...input,
293
+ ignorePatterns,
285
294
  };
286
295
  };
287
296
 
@@ -28,6 +28,8 @@ declare const config: {
28
28
  useTabs: true;
29
29
  vueIndentScriptAndStyle: false;
30
30
  };
31
- declare const createConfig: (input: Required<Pick<OxfmtConfig, "overrides">>) => OxfmtConfig;
31
+ declare const createConfig: ({
32
+ overrides
33
+ }: Required<Pick<OxfmtConfig, "overrides">>) => OxfmtConfig;
32
34
  //#endregion
33
35
  export { createConfig, config as default };
@@ -26,10 +26,10 @@ const config = defineConfig({
26
26
  useTabs: true,
27
27
  vueIndentScriptAndStyle: false
28
28
  });
29
- const createConfig = (input) => {
29
+ const createConfig = ({ overrides }) => {
30
30
  return {
31
31
  ...config,
32
- ...input
32
+ overrides
33
33
  };
34
34
  };
35
35
 
@@ -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: (input: Required<Pick<OxlintConfig, "ignorePatterns">>) => OxlintConfig;
222
+ declare const createConfig: ({
223
+ ignorePatterns
224
+ }: Required<Pick<OxlintConfig, "ignorePatterns">>) => OxlintConfig;
198
225
  //#endregion
199
226
  export { createConfig, config as default };
@@ -41,49 +41,56 @@ const config = defineConfig({
41
41
  typeAware: true,
42
42
  typeCheck: true
43
43
  },
44
- overrides: [{
45
- files: TEST_LIKE_FILES,
46
- plugins: ["vitest"],
47
- rules: {
48
- "vitest/consistent-test-it": ["error", {
49
- fn: "test",
50
- withinDescribe: "test"
51
- }],
52
- "vitest/no-hooks": "off",
53
- "vitest/no-importing-vitest-globals": "off",
54
- "vitest/prefer-to-be-falsy": "off",
55
- "vitest/prefer-to-be-truthy": "off",
56
- "vitest/require-mock-type-parameters": "off",
57
- "vitest/require-test-timeout": "off",
58
- "vitest/valid-title": ["error", {
59
- allowArguments: true,
60
- mustMatch: { test: ["^should "] }
61
- }]
62
- }
63
- }, {
64
- files: [
65
- ...TEST_LIKE_FILES,
66
- "**/.config/**",
67
- "**/.configs/**",
68
- "**/config/**",
69
- "**/configs/**",
70
- "**/examples/**",
71
- "**/scripts/**",
72
- "**/tools/**",
73
- `**/config.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
74
- `**/configs.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
75
- `**/*.config.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
76
- `**/*.configs.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
77
- `**/stories.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`,
78
- `**/*.stories.{${JAVASCRIPT_LIKE_EXTENSIONS_AS_STRING}}`
79
- ],
80
- rules: {
81
- "e18e/prefer-static-regex": "off",
82
- "import/no-anonymous-default-export": "off",
83
- "import/no-default-export": "off",
84
- "react/forbid-component-props": "off"
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 = (input) => {
298
+ const createConfig = ({ ignorePatterns }) => {
289
299
  return {
290
300
  ...config,
291
- ...input
301
+ ignorePatterns
292
302
  };
293
303
  };
294
304
 
package/dist/index.js CHANGED
@@ -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-6537284";
445
+ var version = "2.40.0-next-ae97ae3";
446
446
 
447
447
  //#endregion
448
448
  //#region src/commands/create.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adbayb/stack",
3
- "version": "2.40.0-next-6537284",
3
+ "version": "2.40.0-next-ae97ae3",
4
4
  "description": "My opinionated JavaScript-based toolchain",
5
5
  "keywords": [
6
6
  "development",