@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.
@@ -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",
@@ -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
- input: Required<Pick<OxlintConfig, "ignorePatterns">>,
282
- ): OxlintConfig => {
288
+ export const createConfig = ({
289
+ ignorePatterns,
290
+ }: Required<Pick<OxlintConfig, "ignorePatterns">>): OxlintConfig => {
283
291
  return {
284
292
  ...config,
285
- ...input,
293
+ ignorePatterns,
286
294
  };
287
295
  };
288
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
  })[];
@@ -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: (input: Required<Pick<OxlintConfig, "ignorePatterns">>) => OxlintConfig;
222
+ declare const createConfig: ({
223
+ ignorePatterns
224
+ }: Required<Pick<OxlintConfig, "ignorePatterns">>) => OxlintConfig;
199
225
  //#endregion
200
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",
@@ -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 = (input) => {
298
+ const createConfig = ({ ignorePatterns }) => {
290
299
  return {
291
300
  ...config,
292
- ...input
301
+ ignorePatterns
293
302
  };
294
303
  };
295
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-5ef9eef";
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-5ef9eef",
3
+ "version": "2.40.0-next-ae97ae3",
4
4
  "description": "My opinionated JavaScript-based toolchain",
5
5
  "keywords": [
6
6
  "development",