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

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,7 +37,10 @@ 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
45
  "vitest/valid-title": ["error", { mustMatch: { test: ["^should "] } }],
43
46
  },
@@ -102,7 +105,8 @@ const config = defineConfig({
102
105
  {
103
106
  customGroups: [
104
107
  {
105
- elementNamePattern: "^(as|id|identifier|htmlFor|key|ref)$",
108
+ elementNamePattern:
109
+ "^(as|children|id|identifier|htmlFor|key|ref)$",
106
110
  groupName: "id-like",
107
111
  },
108
112
  {
@@ -193,6 +197,7 @@ const config = defineConfig({
193
197
  ],
194
198
  "@stylistic/spaced-comment": "error",
195
199
  "arrow-body-style": ["error", "always"],
200
+ "class-methods-use-this": "off",
196
201
  "id-length": "off",
197
202
  "import/exports-last": "off",
198
203
  "import/group-exports": "off",
@@ -209,12 +214,14 @@ const config = defineConfig({
209
214
  "max-classes-per-file": "off",
210
215
  "max-lines": "off",
211
216
  "max-lines-per-function": "off",
217
+ "max-params": "off",
212
218
  "max-statements": "off",
213
219
  "nextjs/google-font-display": "error",
214
220
  "nextjs/google-font-preconnect": "error",
215
221
  "nextjs/no-sync-scripts": "error",
216
222
  "nextjs/no-unwanted-polyfillio": "error",
217
223
  "no-async-await": "off",
224
+ "no-bitwise": "off",
218
225
  "no-console": "off",
219
226
  "no-continue": "off",
220
227
  "no-duplicate-imports": ["error", { allowSeparateTypeImports: true }],
@@ -229,6 +236,7 @@ const config = defineConfig({
229
236
  "no-use-before-define": "off",
230
237
  "no-void": "off",
231
238
  "no-warning-comments": "off",
239
+ "node/no-process-env": "off",
232
240
  "node/no-sync": "off",
233
241
  "perfectionist/sort-imports": "off", // Already supported by Oxfmt
234
242
  "perfectionist/sort-named-imports": "off", // Already supported by eslint/sort-imports
@@ -237,6 +245,12 @@ const config = defineConfig({
237
245
  "react/jsx-filename-extension": ["error", { extensions: ["jsx", "tsx"] }],
238
246
  "react/jsx-max-depth": "off",
239
247
  "react/jsx-no-literals": "off",
248
+ "react/jsx-props-no-spreading": "off",
249
+ "react/no-multi-comp": "off",
250
+ "react/prefer-function-component": [
251
+ "error",
252
+ { allowErrorBoundary: true, allowJsxUtilityClass: true },
253
+ ],
240
254
  "react/react-in-jsx-scope": "off",
241
255
  "sort-imports": "off", // Already supported by ESLint Perfectionist
242
256
  "sort-keys": "off", // Already supported by ESLint Perfectionist
@@ -27,7 +27,10 @@ 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: {
@@ -47,7 +50,10 @@ declare const config: {
47
50
  "import/no-default-export": "off";
48
51
  "react/forbid-component-props": "off";
49
52
  "vitest/consistent-test-it"?: never;
53
+ "vitest/no-hooks"?: never;
50
54
  "vitest/no-importing-vitest-globals"?: never;
55
+ "vitest/prefer-to-be-truthy"?: never;
56
+ "vitest/require-mock-type-parameters"?: never;
51
57
  "vitest/require-test-timeout"?: never;
52
58
  "vitest/valid-title"?: never;
53
59
  };
@@ -107,6 +113,7 @@ declare const config: {
107
113
  }];
108
114
  "@stylistic/spaced-comment": "error";
109
115
  "arrow-body-style": ["error", "always"];
116
+ "class-methods-use-this": "off";
110
117
  "id-length": "off";
111
118
  "import/exports-last": "off";
112
119
  "import/group-exports": "off";
@@ -123,12 +130,14 @@ declare const config: {
123
130
  "max-classes-per-file": "off";
124
131
  "max-lines": "off";
125
132
  "max-lines-per-function": "off";
133
+ "max-params": "off";
126
134
  "max-statements": "off";
127
135
  "nextjs/google-font-display": "error";
128
136
  "nextjs/google-font-preconnect": "error";
129
137
  "nextjs/no-sync-scripts": "error";
130
138
  "nextjs/no-unwanted-polyfillio": "error";
131
139
  "no-async-await": "off";
140
+ "no-bitwise": "off";
132
141
  "no-console": "off";
133
142
  "no-continue": "off";
134
143
  "no-duplicate-imports": ["error", {
@@ -145,6 +154,7 @@ declare const config: {
145
154
  "no-use-before-define": "off";
146
155
  "no-void": "off";
147
156
  "no-warning-comments": "off";
157
+ "node/no-process-env": "off";
148
158
  "node/no-sync": "off";
149
159
  "perfectionist/sort-imports": "off";
150
160
  "perfectionist/sort-named-imports": "off";
@@ -155,6 +165,12 @@ declare const config: {
155
165
  }];
156
166
  "react/jsx-max-depth": "off";
157
167
  "react/jsx-no-literals": "off";
168
+ "react/jsx-props-no-spreading": "off";
169
+ "react/no-multi-comp": "off";
170
+ "react/prefer-function-component": ["error", {
171
+ allowErrorBoundary: true;
172
+ allowJsxUtilityClass: true;
173
+ }];
158
174
  "react/react-in-jsx-scope": "off";
159
175
  "sort-imports": "off";
160
176
  "sort-keys": "off";
@@ -49,7 +49,10 @@ 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
57
  "vitest/valid-title": ["error", { mustMatch: { test: ["^should "] } }]
55
58
  }
@@ -107,7 +110,7 @@ const config = defineConfig({
107
110
  return [`perfectionist/${ruleName}`, ["error", {
108
111
  customGroups: [
109
112
  {
110
- elementNamePattern: "^(as|id|identifier|htmlFor|key|ref)$",
113
+ elementNamePattern: "^(as|children|id|identifier|htmlFor|key|ref)$",
111
114
  groupName: "id-like"
112
115
  },
113
116
  {
@@ -204,6 +207,7 @@ const config = defineConfig({
204
207
  ],
205
208
  "@stylistic/spaced-comment": "error",
206
209
  "arrow-body-style": ["error", "always"],
210
+ "class-methods-use-this": "off",
207
211
  "id-length": "off",
208
212
  "import/exports-last": "off",
209
213
  "import/group-exports": "off",
@@ -220,12 +224,14 @@ const config = defineConfig({
220
224
  "max-classes-per-file": "off",
221
225
  "max-lines": "off",
222
226
  "max-lines-per-function": "off",
227
+ "max-params": "off",
223
228
  "max-statements": "off",
224
229
  "nextjs/google-font-display": "error",
225
230
  "nextjs/google-font-preconnect": "error",
226
231
  "nextjs/no-sync-scripts": "error",
227
232
  "nextjs/no-unwanted-polyfillio": "error",
228
233
  "no-async-await": "off",
234
+ "no-bitwise": "off",
229
235
  "no-console": "off",
230
236
  "no-continue": "off",
231
237
  "no-duplicate-imports": ["error", { allowSeparateTypeImports: true }],
@@ -240,6 +246,7 @@ const config = defineConfig({
240
246
  "no-use-before-define": "off",
241
247
  "no-void": "off",
242
248
  "no-warning-comments": "off",
249
+ "node/no-process-env": "off",
243
250
  "node/no-sync": "off",
244
251
  "perfectionist/sort-imports": "off",
245
252
  "perfectionist/sort-named-imports": "off",
@@ -248,6 +255,12 @@ const config = defineConfig({
248
255
  "react/jsx-filename-extension": ["error", { extensions: ["jsx", "tsx"] }],
249
256
  "react/jsx-max-depth": "off",
250
257
  "react/jsx-no-literals": "off",
258
+ "react/jsx-props-no-spreading": "off",
259
+ "react/no-multi-comp": "off",
260
+ "react/prefer-function-component": ["error", {
261
+ allowErrorBoundary: true,
262
+ allowJsxUtilityClass: true
263
+ }],
251
264
  "react/react-in-jsx-scope": "off",
252
265
  "sort-imports": "off",
253
266
  "sort-keys": "off",
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-bab76dc";
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-bab76dc",
4
4
  "description": "My opinionated JavaScript-based toolchain",
5
5
  "keywords": [
6
6
  "development",