@adbayb/stack 2.40.0-next-c79a72a → 2.40.0-next-bc8f858

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.
@@ -37,9 +37,15 @@ 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
- "vitest/valid-title": ["error", { mustMatch: { test: ["^should "] } }],
45
+ "vitest/valid-title": [
46
+ "error",
47
+ { mustMatch: { allowArguments: true, test: ["^should "] } },
48
+ ],
43
49
  },
44
50
  },
45
51
  {
@@ -102,7 +108,8 @@ const config = defineConfig({
102
108
  {
103
109
  customGroups: [
104
110
  {
105
- elementNamePattern: "^(as|id|identifier|htmlFor|key|ref)$",
111
+ elementNamePattern:
112
+ "^(as|children|id|identifier|htmlFor|key|ref)$",
106
113
  groupName: "id-like",
107
114
  },
108
115
  {
@@ -193,6 +200,7 @@ const config = defineConfig({
193
200
  ],
194
201
  "@stylistic/spaced-comment": "error",
195
202
  "arrow-body-style": ["error", "always"],
203
+ "class-methods-use-this": "off",
196
204
  "id-length": "off",
197
205
  "import/exports-last": "off",
198
206
  "import/group-exports": "off",
@@ -203,24 +211,28 @@ const config = defineConfig({
203
211
  "import/no-relative-parent-imports": "off",
204
212
  "import/prefer-default-export": "off",
205
213
  "import/unambiguous": "off",
214
+ "init-declarations": "off",
206
215
  "jsdoc/require-param-type": "off",
207
216
  "jsdoc/require-property-type": "off",
208
217
  "jsdoc/require-returns-type": "off",
209
218
  "max-classes-per-file": "off",
210
219
  "max-lines": "off",
211
220
  "max-lines-per-function": "off",
221
+ "max-params": "off",
212
222
  "max-statements": "off",
213
223
  "nextjs/google-font-display": "error",
214
224
  "nextjs/google-font-preconnect": "error",
215
225
  "nextjs/no-sync-scripts": "error",
216
226
  "nextjs/no-unwanted-polyfillio": "error",
217
227
  "no-async-await": "off",
228
+ "no-bitwise": "off",
218
229
  "no-console": "off",
219
230
  "no-continue": "off",
220
231
  "no-duplicate-imports": ["error", { allowSeparateTypeImports: true }],
221
232
  "no-inline-comments": "off",
222
233
  "no-magic-numbers": "off",
223
234
  "no-optional-chaining": "off",
235
+ "no-param-reassign": "off",
224
236
  "no-rest-spread-properties": "off",
225
237
  "no-ternary": "off",
226
238
  "no-undef": "off",
@@ -229,6 +241,7 @@ const config = defineConfig({
229
241
  "no-use-before-define": "off",
230
242
  "no-void": "off",
231
243
  "no-warning-comments": "off",
244
+ "node/no-process-env": "off",
232
245
  "node/no-sync": "off",
233
246
  "perfectionist/sort-imports": "off", // Already supported by Oxfmt
234
247
  "perfectionist/sort-named-imports": "off", // Already supported by eslint/sort-imports
@@ -237,6 +250,12 @@ const config = defineConfig({
237
250
  "react/jsx-filename-extension": ["error", { extensions: ["jsx", "tsx"] }],
238
251
  "react/jsx-max-depth": "off",
239
252
  "react/jsx-no-literals": "off",
253
+ "react/jsx-props-no-spreading": "off",
254
+ "react/no-multi-comp": "off",
255
+ "react/prefer-function-component": [
256
+ "error",
257
+ { allowErrorBoundary: true, allowJsxUtilityClass: true },
258
+ ],
240
259
  "react/react-in-jsx-scope": "off",
241
260
  "sort-imports": "off", // Already supported by ESLint Perfectionist
242
261
  "sort-keys": "off", // Already supported by ESLint Perfectionist
@@ -249,6 +268,7 @@ const config = defineConfig({
249
268
  "typescript/no-unsafe-type-assertion": "off",
250
269
  "unicorn/filename-case": "off",
251
270
  "unicorn/import-style": "off",
271
+ "unicorn/no-array-for-each": "off",
252
272
  "unicorn/no-array-reduce": "off",
253
273
  "unicorn/no-useless-undefined": "off",
254
274
  },
@@ -27,10 +27,14 @@ 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: {
37
+ allowArguments: boolean;
34
38
  test: string[];
35
39
  };
36
40
  }];
@@ -47,7 +51,10 @@ declare const config: {
47
51
  "import/no-default-export": "off";
48
52
  "react/forbid-component-props": "off";
49
53
  "vitest/consistent-test-it"?: never;
54
+ "vitest/no-hooks"?: never;
50
55
  "vitest/no-importing-vitest-globals"?: never;
56
+ "vitest/prefer-to-be-truthy"?: never;
57
+ "vitest/require-mock-type-parameters"?: never;
51
58
  "vitest/require-test-timeout"?: never;
52
59
  "vitest/valid-title"?: never;
53
60
  };
@@ -107,6 +114,7 @@ declare const config: {
107
114
  }];
108
115
  "@stylistic/spaced-comment": "error";
109
116
  "arrow-body-style": ["error", "always"];
117
+ "class-methods-use-this": "off";
110
118
  "id-length": "off";
111
119
  "import/exports-last": "off";
112
120
  "import/group-exports": "off";
@@ -117,18 +125,21 @@ declare const config: {
117
125
  "import/no-relative-parent-imports": "off";
118
126
  "import/prefer-default-export": "off";
119
127
  "import/unambiguous": "off";
128
+ "init-declarations": "off";
120
129
  "jsdoc/require-param-type": "off";
121
130
  "jsdoc/require-property-type": "off";
122
131
  "jsdoc/require-returns-type": "off";
123
132
  "max-classes-per-file": "off";
124
133
  "max-lines": "off";
125
134
  "max-lines-per-function": "off";
135
+ "max-params": "off";
126
136
  "max-statements": "off";
127
137
  "nextjs/google-font-display": "error";
128
138
  "nextjs/google-font-preconnect": "error";
129
139
  "nextjs/no-sync-scripts": "error";
130
140
  "nextjs/no-unwanted-polyfillio": "error";
131
141
  "no-async-await": "off";
142
+ "no-bitwise": "off";
132
143
  "no-console": "off";
133
144
  "no-continue": "off";
134
145
  "no-duplicate-imports": ["error", {
@@ -137,6 +148,7 @@ declare const config: {
137
148
  "no-inline-comments": "off";
138
149
  "no-magic-numbers": "off";
139
150
  "no-optional-chaining": "off";
151
+ "no-param-reassign": "off";
140
152
  "no-rest-spread-properties": "off";
141
153
  "no-ternary": "off";
142
154
  "no-undef": "off";
@@ -145,6 +157,7 @@ declare const config: {
145
157
  "no-use-before-define": "off";
146
158
  "no-void": "off";
147
159
  "no-warning-comments": "off";
160
+ "node/no-process-env": "off";
148
161
  "node/no-sync": "off";
149
162
  "perfectionist/sort-imports": "off";
150
163
  "perfectionist/sort-named-imports": "off";
@@ -155,6 +168,12 @@ declare const config: {
155
168
  }];
156
169
  "react/jsx-max-depth": "off";
157
170
  "react/jsx-no-literals": "off";
171
+ "react/jsx-props-no-spreading": "off";
172
+ "react/no-multi-comp": "off";
173
+ "react/prefer-function-component": ["error", {
174
+ allowErrorBoundary: true;
175
+ allowJsxUtilityClass: true;
176
+ }];
158
177
  "react/react-in-jsx-scope": "off";
159
178
  "sort-imports": "off";
160
179
  "sort-keys": "off";
@@ -167,6 +186,7 @@ declare const config: {
167
186
  "typescript/no-unsafe-type-assertion": "off";
168
187
  "unicorn/filename-case": "off";
169
188
  "unicorn/import-style": "off";
189
+ "unicorn/no-array-for-each": "off";
170
190
  "unicorn/no-array-reduce": "off";
171
191
  "unicorn/no-useless-undefined": "off";
172
192
  };
@@ -49,9 +49,15 @@ 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
- "vitest/valid-title": ["error", { mustMatch: { test: ["^should "] } }]
57
+ "vitest/valid-title": ["error", { mustMatch: {
58
+ allowArguments: true,
59
+ test: ["^should "]
60
+ } }]
55
61
  }
56
62
  }, {
57
63
  files: [
@@ -107,7 +113,7 @@ const config = defineConfig({
107
113
  return [`perfectionist/${ruleName}`, ["error", {
108
114
  customGroups: [
109
115
  {
110
- elementNamePattern: "^(as|id|identifier|htmlFor|key|ref)$",
116
+ elementNamePattern: "^(as|children|id|identifier|htmlFor|key|ref)$",
111
117
  groupName: "id-like"
112
118
  },
113
119
  {
@@ -204,6 +210,7 @@ const config = defineConfig({
204
210
  ],
205
211
  "@stylistic/spaced-comment": "error",
206
212
  "arrow-body-style": ["error", "always"],
213
+ "class-methods-use-this": "off",
207
214
  "id-length": "off",
208
215
  "import/exports-last": "off",
209
216
  "import/group-exports": "off",
@@ -214,24 +221,28 @@ const config = defineConfig({
214
221
  "import/no-relative-parent-imports": "off",
215
222
  "import/prefer-default-export": "off",
216
223
  "import/unambiguous": "off",
224
+ "init-declarations": "off",
217
225
  "jsdoc/require-param-type": "off",
218
226
  "jsdoc/require-property-type": "off",
219
227
  "jsdoc/require-returns-type": "off",
220
228
  "max-classes-per-file": "off",
221
229
  "max-lines": "off",
222
230
  "max-lines-per-function": "off",
231
+ "max-params": "off",
223
232
  "max-statements": "off",
224
233
  "nextjs/google-font-display": "error",
225
234
  "nextjs/google-font-preconnect": "error",
226
235
  "nextjs/no-sync-scripts": "error",
227
236
  "nextjs/no-unwanted-polyfillio": "error",
228
237
  "no-async-await": "off",
238
+ "no-bitwise": "off",
229
239
  "no-console": "off",
230
240
  "no-continue": "off",
231
241
  "no-duplicate-imports": ["error", { allowSeparateTypeImports: true }],
232
242
  "no-inline-comments": "off",
233
243
  "no-magic-numbers": "off",
234
244
  "no-optional-chaining": "off",
245
+ "no-param-reassign": "off",
235
246
  "no-rest-spread-properties": "off",
236
247
  "no-ternary": "off",
237
248
  "no-undef": "off",
@@ -240,6 +251,7 @@ const config = defineConfig({
240
251
  "no-use-before-define": "off",
241
252
  "no-void": "off",
242
253
  "no-warning-comments": "off",
254
+ "node/no-process-env": "off",
243
255
  "node/no-sync": "off",
244
256
  "perfectionist/sort-imports": "off",
245
257
  "perfectionist/sort-named-imports": "off",
@@ -248,6 +260,12 @@ const config = defineConfig({
248
260
  "react/jsx-filename-extension": ["error", { extensions: ["jsx", "tsx"] }],
249
261
  "react/jsx-max-depth": "off",
250
262
  "react/jsx-no-literals": "off",
263
+ "react/jsx-props-no-spreading": "off",
264
+ "react/no-multi-comp": "off",
265
+ "react/prefer-function-component": ["error", {
266
+ allowErrorBoundary: true,
267
+ allowJsxUtilityClass: true
268
+ }],
251
269
  "react/react-in-jsx-scope": "off",
252
270
  "sort-imports": "off",
253
271
  "sort-keys": "off",
@@ -260,6 +278,7 @@ const config = defineConfig({
260
278
  "typescript/no-unsafe-type-assertion": "off",
261
279
  "unicorn/filename-case": "off",
262
280
  "unicorn/import-style": "off",
281
+ "unicorn/no-array-for-each": "off",
263
282
  "unicorn/no-array-reduce": "off",
264
283
  "unicorn/no-useless-undefined": "off"
265
284
  }
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-c79a72a";
445
+ var version = "2.40.0-next-bc8f858";
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-c79a72a",
3
+ "version": "2.40.0-next-bc8f858",
4
4
  "description": "My opinionated JavaScript-based toolchain",
5
5
  "keywords": [
6
6
  "development",