@elliemae/pui-cli 9.0.0-alpha.1 → 9.0.0-alpha.3

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.
Files changed (104) hide show
  1. package/README.md +33 -0
  2. package/dist/cjs/commands/test.js +0 -1
  3. package/dist/cjs/commands/utils.js +4 -4
  4. package/dist/cjs/commands/vitest.js +0 -1
  5. package/dist/cjs/index.cjs +12 -0
  6. package/dist/cjs/index.js +6 -0
  7. package/dist/cjs/lint-config/eslint/common.cjs +1 -1
  8. package/dist/cjs/lint-config/eslint/flat/common.mjs +162 -0
  9. package/dist/cjs/lint-config/eslint/flat/index.mjs +20 -0
  10. package/dist/cjs/lint-config/eslint/flat/non-react-export.mjs +10 -0
  11. package/dist/cjs/lint-config/eslint/flat/non-react.mjs +6 -0
  12. package/dist/cjs/lint-config/eslint/flat/presets.mjs +79 -0
  13. package/dist/cjs/lint-config/eslint/flat/react-export.mjs +7 -0
  14. package/dist/cjs/lint-config/eslint/flat/react.mjs +60 -0
  15. package/dist/cjs/lint-config/eslint/flat/rules.mjs +170 -0
  16. package/dist/cjs/lint-config/eslint/typescript/non-react.cjs +1 -1
  17. package/dist/cjs/lint-config/eslint/typescript/react.cjs +1 -1
  18. package/dist/cjs/monorepo/utils.cjs +2 -2
  19. package/dist/cjs/monorepo/utils.js +1 -1
  20. package/dist/cjs/testing/jest.config.cjs +4 -4
  21. package/dist/cjs/testing/resolver.cjs +1 -1
  22. package/dist/cjs/testing/setup-react-env.js +1 -1
  23. package/dist/cjs/transpile/esbuild.js +1 -1
  24. package/dist/cjs/webpack/csp-plugin.js +2 -4
  25. package/dist/cjs/webpack/prop-types-shim.js +0 -1
  26. package/dist/cjs/webpack/webpack.lib.base.babel.js +0 -8
  27. package/dist/esm/commands/test.js +0 -1
  28. package/dist/esm/commands/utils.js +4 -4
  29. package/dist/esm/commands/vitest.js +0 -1
  30. package/dist/esm/index.cjs +12 -0
  31. package/dist/esm/index.js +12 -0
  32. package/dist/esm/lint-config/eslint/common.cjs +1 -1
  33. package/dist/esm/lint-config/eslint/flat/common.mjs +162 -0
  34. package/dist/esm/lint-config/eslint/flat/index.mjs +20 -0
  35. package/dist/esm/lint-config/eslint/flat/non-react-export.mjs +10 -0
  36. package/dist/esm/lint-config/eslint/flat/non-react.mjs +6 -0
  37. package/dist/esm/lint-config/eslint/flat/presets.mjs +79 -0
  38. package/dist/esm/lint-config/eslint/flat/react-export.mjs +7 -0
  39. package/dist/esm/lint-config/eslint/flat/react.mjs +60 -0
  40. package/dist/esm/lint-config/eslint/flat/rules.mjs +170 -0
  41. package/dist/esm/lint-config/eslint/typescript/non-react.cjs +1 -1
  42. package/dist/esm/lint-config/eslint/typescript/react.cjs +1 -1
  43. package/dist/esm/monorepo/utils.cjs +2 -2
  44. package/dist/esm/monorepo/utils.js +1 -1
  45. package/dist/esm/testing/jest.config.cjs +4 -4
  46. package/dist/esm/testing/resolver.cjs +1 -1
  47. package/dist/esm/testing/setup-react-env.js +1 -1
  48. package/dist/esm/transpile/esbuild.js +1 -1
  49. package/dist/esm/webpack/csp-plugin.js +2 -4
  50. package/dist/esm/webpack/prop-types-shim.js +0 -1
  51. package/dist/esm/webpack/webpack.lib.base.babel.js +0 -8
  52. package/dist/types/lib/commands/build.d.ts +1 -1
  53. package/dist/types/lib/commands/buildcdn.d.ts +1 -1
  54. package/dist/types/lib/commands/codemod.d.ts +1 -1
  55. package/dist/types/lib/commands/gendoc.d.ts +1 -1
  56. package/dist/types/lib/commands/lint.d.ts +1 -1
  57. package/dist/types/lib/commands/pack.d.ts +1 -1
  58. package/dist/types/lib/commands/start.d.ts +1 -1
  59. package/dist/types/lib/commands/storybook.d.ts +1 -1
  60. package/dist/types/lib/commands/test.d.ts +1 -1
  61. package/dist/types/lib/commands/tscheck.d.ts +1 -1
  62. package/dist/types/lib/commands/version.d.ts +1 -1
  63. package/dist/types/lib/commands/vitest.d.ts +1 -1
  64. package/dist/types/lib/index.d.cts +5 -1
  65. package/dist/types/lib/index.d.ts +4 -0
  66. package/dist/types/lib/lint-config/eslint/flat/common.d.mts +6 -0
  67. package/dist/types/lib/lint-config/eslint/flat/index.d.mts +6 -0
  68. package/dist/types/lib/lint-config/eslint/flat/non-react-export.d.mts +4 -0
  69. package/dist/types/lib/lint-config/eslint/flat/non-react.d.mts +3 -0
  70. package/dist/types/lib/lint-config/eslint/flat/presets.d.mts +63 -0
  71. package/dist/types/lib/lint-config/eslint/flat/react-export.d.mts +4 -0
  72. package/dist/types/lib/lint-config/eslint/flat/react.d.mts +4 -0
  73. package/dist/types/lib/lint-config/eslint/flat/rules.d.mts +350 -0
  74. package/dist/types/lib/server/appRoutes.d.ts +1 -1
  75. package/dist/types/lib/server/csp.d.ts +1 -1
  76. package/dist/types/lib/server/middlewares.d.ts +1 -1
  77. package/dist/types/lib/webpack/csp-plugin.d.ts +3 -3
  78. package/dist/types/lib/webpack/helpers.d.ts +1 -1
  79. package/dist/types/lib/webpack/interceptor-middleware.d.ts +2 -2
  80. package/dist/types/lib/webpack/webpack.base.babel.d.ts +1 -1
  81. package/dist/types/lib/webpack/webpack.lib.base.babel.d.ts +1 -1
  82. package/dist/types/lib/webpack/webpack.lib.prod.babel.d.ts +1 -1
  83. package/dist/types/lib/webpack/webpack.prod.babel.d.ts +1 -1
  84. package/dist/types/lib/webpack/webpack.storybook.d.ts +1 -1
  85. package/dist/types/tsconfig.tsbuildinfo +1 -1
  86. package/lib/lint-config/commitlint.config.cjs +1 -0
  87. package/lib/lint-config/eslint/common.cjs +164 -0
  88. package/lib/lint-config/eslint/flat/common.mjs +162 -0
  89. package/lib/lint-config/eslint/flat/index.mjs +20 -0
  90. package/lib/lint-config/eslint/flat/non-react-export.mjs +10 -0
  91. package/lib/lint-config/eslint/flat/non-react.mjs +6 -0
  92. package/lib/lint-config/eslint/flat/presets.mjs +79 -0
  93. package/lib/lint-config/eslint/flat/react-export.mjs +7 -0
  94. package/lib/lint-config/eslint/flat/react.mjs +60 -0
  95. package/lib/lint-config/eslint/flat/rules.mjs +170 -0
  96. package/lib/lint-config/eslint/non-react.cjs +14 -0
  97. package/lib/lint-config/eslint/react.cjs +26 -0
  98. package/lib/lint-config/eslint/typescript/common.cjs +49 -0
  99. package/lib/lint-config/eslint/typescript/non-react.cjs +12 -0
  100. package/lib/lint-config/eslint/typescript/react.cjs +19 -0
  101. package/lib/lint-config/lint-staged.config.js +15 -0
  102. package/lib/lint-config/prettier.config.cjs +8 -0
  103. package/lib/lint-config/stylelint.config.cjs +19 -0
  104. package/package.json +21 -22
@@ -0,0 +1,350 @@
1
+ /** Shared rule sets migrated from legacy eslintrc (common.cjs + typescript/*.cjs). */
2
+ export const baseRules: {
3
+ 'arrow-body-style': string[];
4
+ 'class-methods-use-this': string;
5
+ 'import-x/imports-first': string;
6
+ 'import-x/newline-after-import': string;
7
+ 'import-x/no-dynamic-require': string;
8
+ 'import-x/no-extraneous-dependencies': string;
9
+ 'import-x/no-named-as-default': string;
10
+ 'import-x/no-unresolved': (string | {
11
+ caseSensitive: boolean;
12
+ caseSensitiveStrict: boolean;
13
+ })[];
14
+ 'import-x/no-webpack-loader-syntax': string;
15
+ 'import-x/prefer-default-export': string;
16
+ 'import-x/default': string;
17
+ 'import-x/namespace': string;
18
+ 'import-x/extensions': (string | {
19
+ json: string;
20
+ js: string;
21
+ })[];
22
+ complexity: (string | {
23
+ max: number;
24
+ })[];
25
+ 'max-depth': (string | {
26
+ max: number;
27
+ })[];
28
+ 'max-lines-per-function': string;
29
+ 'max-nested-callbacks': (string | {
30
+ max: number;
31
+ })[];
32
+ 'max-params': (string | {
33
+ max: number;
34
+ })[];
35
+ 'max-statements': (string | {
36
+ max: number;
37
+ })[];
38
+ 'max-len': string;
39
+ 'newline-per-chained-call': string;
40
+ 'no-confusing-arrow': string;
41
+ 'no-console': string;
42
+ 'no-param-reassign': (string | {
43
+ props: boolean;
44
+ })[];
45
+ 'prefer-template': string;
46
+ 'require-yield': string;
47
+ 'eslint-comments/disable-enable-pair': string;
48
+ };
49
+ /** Relaxed type-checked rules for test files (shared by default and strict configs). */
50
+ export const typescriptTestRelaxedRules: {
51
+ '@typescript-eslint/no-unsafe-assignment': string;
52
+ '@typescript-eslint/no-unsafe-member-access': string;
53
+ '@typescript-eslint/no-unsafe-call': string;
54
+ '@typescript-eslint/no-unsafe-argument': string;
55
+ '@typescript-eslint/no-unsafe-return': string;
56
+ '@typescript-eslint/unbound-method': string;
57
+ };
58
+ export const jsRules: {
59
+ 'max-lines': (string | {
60
+ max: number;
61
+ skipComments: boolean;
62
+ })[];
63
+ 'no-unused-vars': string;
64
+ 'arrow-body-style': string[];
65
+ 'class-methods-use-this': string;
66
+ 'import-x/imports-first': string;
67
+ 'import-x/newline-after-import': string;
68
+ 'import-x/no-dynamic-require': string;
69
+ 'import-x/no-extraneous-dependencies': string;
70
+ 'import-x/no-named-as-default': string;
71
+ 'import-x/no-unresolved': (string | {
72
+ caseSensitive: boolean;
73
+ caseSensitiveStrict: boolean;
74
+ })[];
75
+ 'import-x/no-webpack-loader-syntax': string;
76
+ 'import-x/prefer-default-export': string;
77
+ 'import-x/default': string;
78
+ 'import-x/namespace': string;
79
+ 'import-x/extensions': (string | {
80
+ json: string;
81
+ js: string;
82
+ })[];
83
+ complexity: (string | {
84
+ max: number;
85
+ })[];
86
+ 'max-depth': (string | {
87
+ max: number;
88
+ })[];
89
+ 'max-lines-per-function': string;
90
+ 'max-nested-callbacks': (string | {
91
+ max: number;
92
+ })[];
93
+ 'max-params': (string | {
94
+ max: number;
95
+ })[];
96
+ 'max-statements': (string | {
97
+ max: number;
98
+ })[];
99
+ 'max-len': string;
100
+ 'newline-per-chained-call': string;
101
+ 'no-confusing-arrow': string;
102
+ 'no-console': string;
103
+ 'no-param-reassign': (string | {
104
+ props: boolean;
105
+ })[];
106
+ 'prefer-template': string;
107
+ 'require-yield': string;
108
+ 'eslint-comments/disable-enable-pair': string;
109
+ };
110
+ export const typescriptRules: {
111
+ 'max-lines': (string | {
112
+ max: number;
113
+ skipComments: boolean;
114
+ })[];
115
+ '@typescript-eslint/explicit-module-boundary-types': string;
116
+ '@typescript-eslint/explicit-function-return-type': string;
117
+ '@typescript-eslint/no-use-before-define': (string | {
118
+ functions: boolean;
119
+ classes: boolean;
120
+ variables: boolean;
121
+ typedefs: boolean;
122
+ })[];
123
+ '@typescript-eslint/unbound-method': (string | {
124
+ ignoreStatic: boolean;
125
+ })[];
126
+ '@typescript-eslint/no-floating-promises': (string | {
127
+ ignoreIIFE: boolean;
128
+ })[];
129
+ '@typescript-eslint/no-misused-promises': (string | {
130
+ checksVoidReturn: {
131
+ attributes: boolean;
132
+ };
133
+ })[];
134
+ '@typescript-eslint/no-unsafe-assignment': string;
135
+ '@typescript-eslint/no-unsafe-member-access': string;
136
+ '@typescript-eslint/no-unsafe-call': string;
137
+ '@typescript-eslint/no-unsafe-argument': string;
138
+ '@typescript-eslint/no-unsafe-return': string;
139
+ '@typescript-eslint/consistent-type-imports': (string | {
140
+ prefer: string;
141
+ fixStyle: string;
142
+ })[];
143
+ '@typescript-eslint/no-import-type-side-effects': string;
144
+ 'no-unused-vars': string;
145
+ '@typescript-eslint/no-unused-vars': (string | {
146
+ argsIgnorePattern: string;
147
+ ignoreRestSiblings: boolean;
148
+ })[];
149
+ 'arrow-body-style': string[];
150
+ 'class-methods-use-this': string;
151
+ 'import-x/imports-first': string;
152
+ 'import-x/newline-after-import': string;
153
+ 'import-x/no-dynamic-require': string;
154
+ 'import-x/no-extraneous-dependencies': string;
155
+ 'import-x/no-named-as-default': string;
156
+ 'import-x/no-unresolved': (string | {
157
+ caseSensitive: boolean;
158
+ caseSensitiveStrict: boolean;
159
+ })[];
160
+ 'import-x/no-webpack-loader-syntax': string;
161
+ 'import-x/prefer-default-export': string;
162
+ 'import-x/default': string;
163
+ 'import-x/namespace': string;
164
+ 'import-x/extensions': (string | {
165
+ json: string;
166
+ js: string;
167
+ })[];
168
+ complexity: (string | {
169
+ max: number;
170
+ })[];
171
+ 'max-depth': (string | {
172
+ max: number;
173
+ })[];
174
+ 'max-lines-per-function': string;
175
+ 'max-nested-callbacks': (string | {
176
+ max: number;
177
+ })[];
178
+ 'max-params': (string | {
179
+ max: number;
180
+ })[];
181
+ 'max-statements': (string | {
182
+ max: number;
183
+ })[];
184
+ 'max-len': string;
185
+ 'newline-per-chained-call': string;
186
+ 'no-confusing-arrow': string;
187
+ 'no-console': string;
188
+ 'no-param-reassign': (string | {
189
+ props: boolean;
190
+ })[];
191
+ 'prefer-template': string;
192
+ 'require-yield': string;
193
+ 'eslint-comments/disable-enable-pair': string;
194
+ };
195
+ /** Stricter TypeScript rules (error on unsafe any usage). */
196
+ export const typescriptStrictRules: {
197
+ '@typescript-eslint/no-unsafe-assignment': string;
198
+ '@typescript-eslint/no-unsafe-member-access': string;
199
+ '@typescript-eslint/no-unsafe-call': string;
200
+ '@typescript-eslint/no-unsafe-argument': string;
201
+ '@typescript-eslint/no-unsafe-return': string;
202
+ 'max-lines': (string | {
203
+ max: number;
204
+ skipComments: boolean;
205
+ })[];
206
+ '@typescript-eslint/explicit-module-boundary-types': string;
207
+ '@typescript-eslint/explicit-function-return-type': string;
208
+ '@typescript-eslint/no-use-before-define': (string | {
209
+ functions: boolean;
210
+ classes: boolean;
211
+ variables: boolean;
212
+ typedefs: boolean;
213
+ })[];
214
+ '@typescript-eslint/unbound-method': (string | {
215
+ ignoreStatic: boolean;
216
+ })[];
217
+ '@typescript-eslint/no-floating-promises': (string | {
218
+ ignoreIIFE: boolean;
219
+ })[];
220
+ '@typescript-eslint/no-misused-promises': (string | {
221
+ checksVoidReturn: {
222
+ attributes: boolean;
223
+ };
224
+ })[];
225
+ '@typescript-eslint/consistent-type-imports': (string | {
226
+ prefer: string;
227
+ fixStyle: string;
228
+ })[];
229
+ '@typescript-eslint/no-import-type-side-effects': string;
230
+ 'no-unused-vars': string;
231
+ '@typescript-eslint/no-unused-vars': (string | {
232
+ argsIgnorePattern: string;
233
+ ignoreRestSiblings: boolean;
234
+ })[];
235
+ 'arrow-body-style': string[];
236
+ 'class-methods-use-this': string;
237
+ 'import-x/imports-first': string;
238
+ 'import-x/newline-after-import': string;
239
+ 'import-x/no-dynamic-require': string;
240
+ 'import-x/no-extraneous-dependencies': string;
241
+ 'import-x/no-named-as-default': string;
242
+ 'import-x/no-unresolved': (string | {
243
+ caseSensitive: boolean;
244
+ caseSensitiveStrict: boolean;
245
+ })[];
246
+ 'import-x/no-webpack-loader-syntax': string;
247
+ 'import-x/prefer-default-export': string;
248
+ 'import-x/default': string;
249
+ 'import-x/namespace': string;
250
+ 'import-x/extensions': (string | {
251
+ json: string;
252
+ js: string;
253
+ })[];
254
+ complexity: (string | {
255
+ max: number;
256
+ })[];
257
+ 'max-depth': (string | {
258
+ max: number;
259
+ })[];
260
+ 'max-lines-per-function': string;
261
+ 'max-nested-callbacks': (string | {
262
+ max: number;
263
+ })[];
264
+ 'max-params': (string | {
265
+ max: number;
266
+ })[];
267
+ 'max-statements': (string | {
268
+ max: number;
269
+ })[];
270
+ 'max-len': string;
271
+ 'newline-per-chained-call': string;
272
+ 'no-confusing-arrow': string;
273
+ 'no-console': string;
274
+ 'no-param-reassign': (string | {
275
+ props: boolean;
276
+ })[];
277
+ 'prefer-template': string;
278
+ 'require-yield': string;
279
+ 'eslint-comments/disable-enable-pair': string;
280
+ };
281
+ export const reactRules: {
282
+ 'jsx-a11y/aria-props': string;
283
+ 'jsx-a11y/heading-has-content': string;
284
+ 'jsx-a11y/label-has-associated-control': (string | {
285
+ controlComponents: string[];
286
+ })[];
287
+ 'jsx-a11y/label-has-for': string;
288
+ 'jsx-a11y/mouse-events-have-key-events': string;
289
+ 'jsx-a11y/role-has-required-aria-props': string;
290
+ 'jsx-a11y/role-supports-aria-props': string;
291
+ 'react/destructuring-assignment': string;
292
+ 'react-hooks/rules-of-hooks': string;
293
+ 'react-hooks/exhaustive-deps': string;
294
+ 'react/jsx-closing-tag-location': string;
295
+ 'react/forbid-prop-types': string;
296
+ 'react/jsx-first-prop-new-line': string[];
297
+ 'react/jsx-no-target-blank': string;
298
+ 'react/jsx-props-no-spreading': string;
299
+ 'react/jsx-uses-vars': string;
300
+ 'react/require-default-props': string;
301
+ 'react/require-extension': string;
302
+ 'react/self-closing-comp': string;
303
+ 'react/sort-comp': string;
304
+ 'react/react-in-jsx-scope': string;
305
+ 'react/jsx-filename-extension': (string | {
306
+ extensions: string[];
307
+ })[];
308
+ 'react/function-component-definition': (string | {
309
+ namedComponents: string;
310
+ })[];
311
+ 'react/prop-types': string;
312
+ 'redux-saga/no-yield-in-race': string;
313
+ 'redux-saga/yield-effects': string;
314
+ };
315
+ /** Stricter React rules (exhaustive-deps as error). */
316
+ export const reactStrictRules: {
317
+ 'react-hooks/exhaustive-deps': string;
318
+ 'jsx-a11y/aria-props': string;
319
+ 'jsx-a11y/heading-has-content': string;
320
+ 'jsx-a11y/label-has-associated-control': (string | {
321
+ controlComponents: string[];
322
+ })[];
323
+ 'jsx-a11y/label-has-for': string;
324
+ 'jsx-a11y/mouse-events-have-key-events': string;
325
+ 'jsx-a11y/role-has-required-aria-props': string;
326
+ 'jsx-a11y/role-supports-aria-props': string;
327
+ 'react/destructuring-assignment': string;
328
+ 'react-hooks/rules-of-hooks': string;
329
+ 'react/jsx-closing-tag-location': string;
330
+ 'react/forbid-prop-types': string;
331
+ 'react/jsx-first-prop-new-line': string[];
332
+ 'react/jsx-no-target-blank': string;
333
+ 'react/jsx-props-no-spreading': string;
334
+ 'react/jsx-uses-vars': string;
335
+ 'react/require-default-props': string;
336
+ 'react/require-extension': string;
337
+ 'react/self-closing-comp': string;
338
+ 'react/sort-comp': string;
339
+ 'react/react-in-jsx-scope': string;
340
+ 'react/jsx-filename-extension': (string | {
341
+ extensions: string[];
342
+ })[];
343
+ 'react/function-component-definition': (string | {
344
+ namedComponents: string;
345
+ })[];
346
+ 'react/prop-types': string;
347
+ 'redux-saga/no-yield-in-race': string;
348
+ 'redux-saga/yield-effects': string;
349
+ };
350
+ export const ignorePatterns: string[];
@@ -1,2 +1,2 @@
1
- import { Application } from 'express';
1
+ import type { Application } from 'express';
2
2
  export declare const loadRoutes: (app: Application) => Promise<void>;
@@ -1,5 +1,5 @@
1
1
  import fs from 'node:fs';
2
- import { Application, Response } from 'express';
2
+ import { type Application, type Response } from 'express';
3
3
  type CSPConfig = {
4
4
  buildPath: string;
5
5
  page?: string;
@@ -1,4 +1,4 @@
1
- import express, { Application } from 'express';
1
+ import express, { type Application } from 'express';
2
2
  export declare const setupDefaultMiddlewares: (app: Application) => void;
3
3
  export declare const setupAdditionalMiddlewars: (app: Application, options?: {
4
4
  buildPath?: string;
@@ -1,4 +1,4 @@
1
- import webpack from 'webpack';
1
+ import type webpack from 'webpack';
2
2
  import HtmlWebpackPlugin from 'html-webpack-plugin';
3
3
  type HTMLWebpackPluginData = {
4
4
  html: string;
@@ -12,10 +12,10 @@ declare class CspPlugin {
12
12
  #private;
13
13
  /**
14
14
  *
15
- * @param htmlWebpackPlugin
15
+ * @param _htmlWebpackPlugin
16
16
  * @param {object} options Additional options for this module.
17
17
  */
18
- constructor(htmlWebpackPlugin: typeof HtmlWebpackPlugin, options?: typeof defaultOptions);
18
+ constructor(_htmlWebpackPlugin: typeof HtmlWebpackPlugin, options?: typeof defaultOptions);
19
19
  /**
20
20
  * Processes HtmlWebpackPlugin's html data by adding the CSP
21
21
  * @param compilation
@@ -1,6 +1,6 @@
1
1
  import zlib from 'zlib';
2
2
  import CompressionPlugin from 'compression-webpack-plugin';
3
- import { ObjectPattern } from 'copy-webpack-plugin';
3
+ import type { ObjectPattern } from 'copy-webpack-plugin';
4
4
  export declare const LATEST_VERSION = "latest";
5
5
  export declare const excludeNodeModulesExcept: (modules: string[]) => (modulePath: string) => boolean;
6
6
  export declare const getLibraryName: () => string;
@@ -1,5 +1,5 @@
1
- import { Request, Response } from 'express';
2
- import { Middleware } from 'webpack-dev-server';
1
+ import type { Request, Response } from 'express';
2
+ import type { Middleware } from 'webpack-dev-server';
3
3
  type ReplacerFunction = (req: Request, res: Response) => {
4
4
  isInterceptable: () => boolean;
5
5
  intercept: (body: string, send: (body: string) => void) => void;
@@ -1,3 +1,3 @@
1
- import { Configuration } from 'webpack';
1
+ import { type Configuration } from 'webpack';
2
2
  import 'webpack-dev-server';
3
3
  export declare const baseConfig: (options: Configuration) => Configuration;
@@ -1,3 +1,3 @@
1
- import { Configuration } from 'webpack';
1
+ import { type Configuration } from 'webpack';
2
2
  import 'webpack-dev-server';
3
3
  export declare const baseConfig: (options: Configuration) => Configuration;
@@ -1,3 +1,3 @@
1
- import { Configuration } from 'webpack';
1
+ import type { Configuration } from 'webpack';
2
2
  declare const _default: Configuration[];
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { Configuration } from 'webpack';
1
+ import type { Configuration } from 'webpack';
2
2
  declare const config: Configuration;
3
3
  export default config;
@@ -1,4 +1,4 @@
1
- import webpack, { Configuration } from 'webpack';
1
+ import webpack, { type Configuration } from 'webpack';
2
2
  export declare const webpackFinal: (config: Configuration, { configType }: {
3
3
  configType: string;
4
4
  }) => webpack.Configuration;