@elliemae/pui-cli 9.0.0-alpha.1 → 9.0.0-alpha.10
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.
- package/README.md +43 -0
- package/app.tsconfig.json +1 -1
- package/build/docs/404.html +16 -0
- package/build/docs/api/functions/loadRoutes/index.html +22 -0
- package/build/docs/api/index.html +22 -0
- package/build/docs/api/type-aliases/LIB_NAME/index.html +17 -0
- package/build/docs/api/variables/babelConfig/index.html +40 -0
- package/build/docs/api/variables/commitlintConfig/index.html +20 -0
- package/build/docs/api/variables/eslintBaseConfig/index.html +132 -0
- package/build/docs/api/variables/eslintConfig/index.html +180 -0
- package/build/docs/api/variables/eslintFlatBaseConfig/index.html +18 -0
- package/build/docs/api/variables/eslintFlatBaseConfigStrict/index.html +18 -0
- package/build/docs/api/variables/eslintFlatConfig/index.html +18 -0
- package/build/docs/api/variables/eslintFlatConfigStrict/index.html +18 -0
- package/build/docs/api/variables/jestConfig/index.html +98 -0
- package/build/docs/api/variables/jestNodeConfig/index.html +98 -0
- package/build/docs/api/variables/lintStagedConfig/index.html +24 -0
- package/build/docs/api/variables/prettierConfig/index.html +30 -0
- package/build/docs/api/variables/stylelintConfig/index.html +17 -0
- package/build/docs/api/variables/vitestConfig/index.html +17 -0
- package/build/docs/assets/css/styles.74603f39.css +1 -0
- package/build/docs/assets/js/04ee7372.eaa386ed.js +1 -0
- package/build/docs/assets/js/0551d4dd.ebb18f4f.js +1 -0
- package/build/docs/assets/js/0a1d0315.fc8f91a7.js +1 -0
- package/build/docs/assets/js/1126.fa547e9c.js +1 -0
- package/build/docs/assets/js/1127.f28430e6.js +1 -0
- package/build/docs/assets/js/1298.fb0939c9.js +1 -0
- package/build/docs/assets/js/13097d8d.c1821d28.js +1 -0
- package/build/docs/assets/js/1617.b2623271.js +1 -0
- package/build/docs/assets/js/16b7bc88.c3779e27.js +1 -0
- package/build/docs/assets/js/1700.4f7a9007.js +1 -0
- package/build/docs/assets/js/17896441.84339068.js +1 -0
- package/build/docs/assets/js/1b9df811.aaa95da1.js +1 -0
- package/build/docs/assets/js/213.e69351b3.js +1 -0
- package/build/docs/assets/js/2297.e63290f4.js +1 -0
- package/build/docs/assets/js/232a0286.33b2782b.js +1 -0
- package/build/docs/assets/js/2399.cc5803e0.js +1 -0
- package/build/docs/assets/js/242.73516ab6.js +1 -0
- package/build/docs/assets/js/247.e1522e52.js +1 -0
- package/build/docs/assets/js/2673.da75a556.js +1 -0
- package/build/docs/assets/js/2805.f0505f8c.js +1 -0
- package/build/docs/assets/js/3395.eb3dad5b.js +1 -0
- package/build/docs/assets/js/3499.2d5c6821.js +1 -0
- package/build/docs/assets/js/3552.9272c0d9.js +1 -0
- package/build/docs/assets/js/3720.8e7f36d4.js +2 -0
- package/build/docs/assets/js/3720.8e7f36d4.js.LICENSE.txt +9 -0
- package/build/docs/assets/js/37d86055.47211796.js +1 -0
- package/build/docs/assets/js/3992.0ac29b2f.js +2 -0
- package/build/docs/assets/js/3992.0ac29b2f.js.LICENSE.txt +1 -0
- package/build/docs/assets/js/4069.301f1115.js +1 -0
- package/build/docs/assets/js/4134.553b3645.js +1 -0
- package/build/docs/assets/js/4257.9afce6ac.js +1 -0
- package/build/docs/assets/js/4772.6294b364.js +1 -0
- package/build/docs/assets/js/4884.9dbe23e5.js +1 -0
- package/build/docs/assets/js/4fb6949f.369cc1b9.js +1 -0
- package/build/docs/assets/js/5196.98f7e06a.js +1 -0
- package/build/docs/assets/js/5248.ee436cea.js +1 -0
- package/build/docs/assets/js/5428.71752e9a.js +1 -0
- package/build/docs/assets/js/5964.0728ed91.js +1 -0
- package/build/docs/assets/js/5968.5f4ccba7.js +1 -0
- package/build/docs/assets/js/5befad71.5f19afb5.js +1 -0
- package/build/docs/assets/js/5d5f1db0.c5aa5afa.js +1 -0
- package/build/docs/assets/js/5e8c322a.ef3b894b.js +1 -0
- package/build/docs/assets/js/5e95c892.f550b901.js +1 -0
- package/build/docs/assets/js/5fb3c522.da5628e8.js +1 -0
- package/build/docs/assets/js/6486.68ae0007.js +1 -0
- package/build/docs/assets/js/6704.2615a5c6.js +1 -0
- package/build/docs/assets/js/6bd11e52.08b95209.js +1 -0
- package/build/docs/assets/js/6e96545e.30c1b801.js +1 -0
- package/build/docs/assets/js/7080.efd5ba6c.js +1 -0
- package/build/docs/assets/js/71f6d02b.cfd98385.js +1 -0
- package/build/docs/assets/js/7201.e90ba636.js +1 -0
- package/build/docs/assets/js/7344.95656e38.js +1 -0
- package/build/docs/assets/js/7516.b6668d60.js +1 -0
- package/build/docs/assets/js/7525.a8d0db87.js +1 -0
- package/build/docs/assets/js/7540.7a4353cf.js +1 -0
- package/build/docs/assets/js/7985.8c6943d6.js +1 -0
- package/build/docs/assets/js/8049.8ba75278.js +1 -0
- package/build/docs/assets/js/80e87108.f9507b95.js +1 -0
- package/build/docs/assets/js/8152.f2bebb2f.js +1 -0
- package/build/docs/assets/js/821.8d4e2a80.js +1 -0
- package/build/docs/assets/js/8290.a4f7a2ca.js +1 -0
- package/build/docs/assets/js/8355.864847a1.js +1 -0
- package/build/docs/assets/js/8389.26a9caca.js +1 -0
- package/build/docs/assets/js/8585.3cb09ff7.js +1 -0
- package/build/docs/assets/js/8788.03856709.js +1 -0
- package/build/docs/assets/js/9178.50ac2954.js +1 -0
- package/build/docs/assets/js/9210.1ac21da8.js +1 -0
- package/build/docs/assets/js/9354.37ad86f9.js +1 -0
- package/build/docs/assets/js/936.c151b43f.js +1 -0
- package/build/docs/assets/js/9574.b172d607.js +1 -0
- package/build/docs/assets/js/97.70eddfb5.js +1 -0
- package/build/docs/assets/js/9852.f77caf52.js +1 -0
- package/build/docs/assets/js/9953.f6278635.js +1 -0
- package/build/docs/assets/js/a7bd4aaa.30ffad02.js +1 -0
- package/build/docs/assets/js/a94703ab.f1796514.js +1 -0
- package/build/docs/assets/js/aba21aa0.3bbcf0cc.js +1 -0
- package/build/docs/assets/js/b7b585d8.6d53e73f.js +1 -0
- package/build/docs/assets/js/b8ac1d98.62684003.js +1 -0
- package/build/docs/assets/js/bde5209a.f5bca8b2.js +1 -0
- package/build/docs/assets/js/c377a04b.0f8625c6.js +1 -0
- package/build/docs/assets/js/dfd75424.51c4e2cb.js +1 -0
- package/build/docs/assets/js/e5f79924.c793a74d.js +1 -0
- package/build/docs/assets/js/f736c962.dbd0d004.js +1 -0
- package/build/docs/assets/js/main.00e13c37.js +2 -0
- package/build/docs/assets/js/main.00e13c37.js.LICENSE.txt +51 -0
- package/build/docs/assets/js/runtime~main.cb214d1a.js +1 -0
- package/build/docs/eslint-rules-migration/index.html +135 -0
- package/build/docs/img/favicon.ico +0 -0
- package/build/docs/img/logo.jpeg +0 -0
- package/build/docs/img/logo.svg +22 -0
- package/build/docs/img/readme.md +1 -0
- package/build/docs/index.html +179 -0
- package/build/docs/pui-cli-9-migration/index.html +150 -0
- package/build/docs/readme.md +1 -0
- package/build/docs/sitemap.xml +1 -0
- package/build/docs/ssl-certificate-setup/index.html +284 -0
- package/build/docs/stylelint-migration/index.html +57 -0
- package/build/docs/usage-guide/index.html +439 -0
- package/dist/cjs/cli.js +3 -13
- package/dist/cjs/commands/build.js +1 -2
- package/dist/cjs/commands/buildcdn.js +1 -2
- package/dist/cjs/commands/codemod.js +1 -12
- package/dist/cjs/commands/gendoc.js +1 -2
- package/dist/cjs/commands/lint.js +11 -9
- package/dist/cjs/commands/pack.js +1 -2
- package/dist/cjs/commands/skills.js +206 -0
- package/dist/cjs/commands/start.js +1 -2
- package/dist/cjs/commands/storybook.js +1 -12
- package/dist/cjs/commands/test.js +1 -13
- package/dist/cjs/commands/tscheck.js +1 -2
- package/dist/cjs/commands/utils.js +16 -12
- package/dist/cjs/commands/version.js +1 -12
- package/dist/cjs/commands/vitest.js +1 -13
- package/dist/cjs/index.cjs +13 -1
- package/dist/cjs/index.js +8 -2
- package/dist/cjs/lint-config/eslint/common.cjs +1 -1
- package/dist/cjs/lint-config/eslint/flat/common.mjs +169 -0
- package/dist/cjs/lint-config/eslint/flat/compat.mjs +27 -0
- package/dist/cjs/lint-config/eslint/flat/index.mjs +21 -0
- package/dist/cjs/lint-config/eslint/flat/non-react-export.mjs +10 -0
- package/dist/cjs/lint-config/eslint/flat/non-react.mjs +6 -0
- package/dist/cjs/lint-config/eslint/flat/presets.mjs +96 -0
- package/dist/cjs/lint-config/eslint/flat/react-export.mjs +7 -0
- package/dist/cjs/lint-config/eslint/flat/react.mjs +59 -0
- package/dist/cjs/lint-config/eslint/flat/rules.mjs +185 -0
- package/dist/cjs/lint-config/eslint/typescript/non-react.cjs +1 -1
- package/dist/cjs/lint-config/eslint/typescript/react.cjs +1 -1
- package/dist/cjs/lint-config/stylelint/config.mjs +27 -0
- package/dist/cjs/lint-config/stylelint/export.mjs +1 -0
- package/dist/cjs/lint-config/stylelint.config.cjs +3 -19
- package/dist/cjs/monorepo/utils.cjs +16 -8
- package/dist/cjs/monorepo/utils.js +5 -8
- package/dist/cjs/{release.config.cjs → release.config.mjs} +3 -2
- package/dist/cjs/{semantic-release-plugin.cjs → semantic-release-plugin.mjs} +3 -3
- package/dist/cjs/skills/migrate-to-pui-cli-9/SKILL.md +271 -0
- package/dist/cjs/testing/jest.config.cjs +4 -4
- package/dist/cjs/testing/resolver.cjs +1 -1
- package/dist/cjs/testing/setup-react-env.js +1 -1
- package/dist/cjs/testing/vitest.config.js +2 -1
- package/dist/cjs/transpile/esbuild.js +1 -1
- package/dist/cjs/webpack/csp-plugin.js +2 -4
- package/dist/cjs/webpack/prop-types-shim.js +0 -1
- package/dist/cjs/webpack/webpack.lib.base.babel.js +0 -8
- package/dist/esm/cli.js +3 -13
- package/dist/esm/commands/build.js +1 -2
- package/dist/esm/commands/buildcdn.js +1 -2
- package/dist/esm/commands/codemod.js +1 -2
- package/dist/esm/commands/gendoc.js +1 -2
- package/dist/esm/commands/lint.js +11 -9
- package/dist/esm/commands/pack.js +1 -2
- package/dist/esm/commands/skills.js +175 -0
- package/dist/esm/commands/start.js +1 -2
- package/dist/esm/commands/storybook.js +1 -2
- package/dist/esm/commands/test.js +1 -3
- package/dist/esm/commands/tscheck.js +1 -2
- package/dist/esm/commands/utils.js +17 -13
- package/dist/esm/commands/version.js +1 -2
- package/dist/esm/commands/vitest.js +1 -3
- package/dist/esm/index.cjs +13 -1
- package/dist/esm/index.js +13 -1
- package/dist/esm/lint-config/eslint/common.cjs +1 -1
- package/dist/esm/lint-config/eslint/flat/common.mjs +169 -0
- package/dist/esm/lint-config/eslint/flat/compat.mjs +27 -0
- package/dist/esm/lint-config/eslint/flat/index.mjs +21 -0
- package/dist/esm/lint-config/eslint/flat/non-react-export.mjs +10 -0
- package/dist/esm/lint-config/eslint/flat/non-react.mjs +6 -0
- package/dist/esm/lint-config/eslint/flat/presets.mjs +96 -0
- package/dist/esm/lint-config/eslint/flat/react-export.mjs +7 -0
- package/dist/esm/lint-config/eslint/flat/react.mjs +59 -0
- package/dist/esm/lint-config/eslint/flat/rules.mjs +185 -0
- package/dist/esm/lint-config/eslint/typescript/non-react.cjs +1 -1
- package/dist/esm/lint-config/eslint/typescript/react.cjs +1 -1
- package/dist/esm/lint-config/stylelint/config.mjs +27 -0
- package/dist/esm/lint-config/stylelint/export.mjs +1 -0
- package/dist/esm/lint-config/stylelint.config.cjs +3 -19
- package/dist/esm/monorepo/utils.cjs +16 -8
- package/dist/esm/monorepo/utils.js +5 -8
- package/dist/esm/{release.config.cjs → release.config.mjs} +3 -2
- package/dist/esm/{semantic-release-plugin.cjs → semantic-release-plugin.mjs} +3 -3
- package/dist/esm/skills/migrate-to-pui-cli-9/SKILL.md +271 -0
- package/dist/esm/testing/jest.config.cjs +4 -4
- package/dist/esm/testing/resolver.cjs +1 -1
- package/dist/esm/testing/setup-react-env.js +1 -1
- package/dist/esm/testing/vitest.config.js +2 -1
- package/dist/esm/transpile/esbuild.js +1 -1
- package/dist/esm/webpack/csp-plugin.js +2 -4
- package/dist/esm/webpack/prop-types-shim.js +0 -1
- package/dist/esm/webpack/webpack.lib.base.babel.js +0 -8
- package/dist/types/lib/commands/build.d.ts +1 -1
- package/dist/types/lib/commands/buildcdn.d.ts +1 -1
- package/dist/types/lib/commands/codemod.d.ts +1 -1
- package/dist/types/lib/commands/gendoc.d.ts +1 -1
- package/dist/types/lib/commands/lint.d.ts +1 -1
- package/dist/types/lib/commands/pack.d.ts +1 -1
- package/dist/types/lib/commands/skills.d.ts +11 -0
- package/dist/types/lib/commands/start.d.ts +1 -1
- package/dist/types/lib/commands/storybook.d.ts +1 -1
- package/dist/types/lib/commands/test.d.ts +1 -1
- package/dist/types/lib/commands/tscheck.d.ts +1 -1
- package/dist/types/lib/commands/utils.d.ts +43 -2
- package/dist/types/lib/commands/version.d.ts +1 -1
- package/dist/types/lib/commands/vitest.d.ts +1 -1
- package/dist/types/lib/index.d.cts +6 -2
- package/dist/types/lib/index.d.ts +5 -1
- package/dist/types/lib/lint-config/eslint/flat/common.d.mts +6 -0
- package/dist/types/lib/lint-config/eslint/flat/compat.d.mts +9 -0
- package/dist/types/lib/lint-config/eslint/flat/index.d.mts +6 -0
- package/dist/types/lib/lint-config/eslint/flat/non-react-export.d.mts +4 -0
- package/dist/types/lib/lint-config/eslint/flat/non-react.d.mts +3 -0
- package/dist/types/lib/lint-config/eslint/flat/presets.d.mts +34 -0
- package/dist/types/lib/lint-config/eslint/flat/react-export.d.mts +4 -0
- package/dist/types/lib/lint-config/eslint/flat/react.d.mts +4 -0
- package/dist/types/lib/lint-config/eslint/flat/rules.d.mts +361 -0
- package/dist/types/lib/lint-config/stylelint/config.d.mts +3 -0
- package/dist/types/lib/lint-config/stylelint/export.d.mts +1 -0
- package/dist/types/lib/lint-config/stylelint.config.d.cts +2 -10
- package/dist/types/lib/release.config.d.mts +10 -0
- package/dist/types/lib/semantic-release-plugin.d.mts +4 -0
- package/dist/types/lib/server/appRoutes.d.ts +1 -1
- package/dist/types/lib/server/csp.d.ts +1 -1
- package/dist/types/lib/server/middlewares.d.ts +1 -1
- package/dist/types/lib/webpack/csp-plugin.d.ts +3 -3
- package/dist/types/lib/webpack/helpers.d.ts +1 -1
- package/dist/types/lib/webpack/interceptor-middleware.d.ts +2 -2
- package/dist/types/lib/webpack/webpack.base.babel.d.ts +1 -1
- package/dist/types/lib/webpack/webpack.lib.base.babel.d.ts +1 -1
- package/dist/types/lib/webpack/webpack.lib.prod.babel.d.ts +1 -1
- package/dist/types/lib/webpack/webpack.prod.babel.d.ts +1 -1
- package/dist/types/lib/webpack/webpack.storybook.d.ts +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/lib/lint-config/commitlint.config.cjs +1 -0
- package/lib/lint-config/eslint/common.cjs +164 -0
- package/lib/lint-config/eslint/flat/common.mjs +169 -0
- package/lib/lint-config/eslint/flat/compat.mjs +27 -0
- package/lib/lint-config/eslint/flat/index.mjs +21 -0
- package/lib/lint-config/eslint/flat/non-react-export.mjs +10 -0
- package/lib/lint-config/eslint/flat/non-react.mjs +6 -0
- package/lib/lint-config/eslint/flat/presets.mjs +96 -0
- package/lib/lint-config/eslint/flat/react-export.mjs +7 -0
- package/lib/lint-config/eslint/flat/react.mjs +59 -0
- package/lib/lint-config/eslint/flat/rules.mjs +185 -0
- package/lib/lint-config/eslint/non-react.cjs +14 -0
- package/lib/lint-config/eslint/react.cjs +26 -0
- package/lib/lint-config/eslint/typescript/common.cjs +49 -0
- package/lib/lint-config/eslint/typescript/non-react.cjs +12 -0
- package/lib/lint-config/eslint/typescript/react.cjs +19 -0
- package/lib/lint-config/lint-staged.config.js +15 -0
- package/lib/lint-config/prettier.config.cjs +8 -0
- package/lib/lint-config/stylelint/config.mjs +27 -0
- package/lib/lint-config/stylelint/export.mjs +1 -0
- package/lib/lint-config/stylelint.config.cjs +3 -0
- package/lib/release.config.mjs +28 -0
- package/lib/semantic-release-plugin.mjs +30 -0
- package/lib/skills/migrate-to-pui-cli-9/SKILL.md +271 -0
- package/library.tsconfig.json +1 -1
- package/package.json +92 -86
- package/dist/types/lib/release.config.d.cts +0 -7
- package/dist/types/lib/semantic-release-plugin.d.cts +0 -1
|
@@ -1,5 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const exec: (command: string, options?:
|
|
1
|
+
import { type Options } from 'execa';
|
|
2
|
+
export declare const exec: <OptionsType extends Options = Options>(command: string, options?: OptionsType) => Promise<import("execa").Result<{
|
|
3
|
+
shell: true;
|
|
4
|
+
} & {
|
|
5
|
+
preferLocal?: boolean;
|
|
6
|
+
localDir?: string | URL;
|
|
7
|
+
node?: boolean;
|
|
8
|
+
nodeOptions?: readonly string[];
|
|
9
|
+
nodePath?: string | URL;
|
|
10
|
+
shell?: boolean | string | URL;
|
|
11
|
+
cwd?: string | URL;
|
|
12
|
+
env?: Readonly<Partial<Record<string, string>>>;
|
|
13
|
+
extendEnv?: boolean;
|
|
14
|
+
input?: string | Uint8Array | import("stream").Readable;
|
|
15
|
+
inputFile?: string | URL;
|
|
16
|
+
stdin?: import("node_modules/execa/types/stdio/type.js").StdinOptionCommon<false>;
|
|
17
|
+
stdout?: import("node_modules/execa/types/stdio/type.js").StdoutStderrOptionCommon<false>;
|
|
18
|
+
stderr?: import("node_modules/execa/types/stdio/type.js").StdoutStderrOptionCommon<false>;
|
|
19
|
+
stdio: "inherit" | "pipe" | "ignore" | "overlapped" | readonly [import("node_modules/execa/types/stdio/type.js").StdinOptionCommon<false, false>, import("node_modules/execa/types/stdio/type.js").StdoutStderrOptionCommon<false, false>, import("node_modules/execa/types/stdio/type.js").StdoutStderrOptionCommon<false, false>, ...import("node_modules/execa/types/stdio/type.js").StdioExtraOptionCommon<false>[]];
|
|
20
|
+
all?: boolean;
|
|
21
|
+
encoding?: import("node_modules/execa/types/arguments/encoding-option.js").EncodingOption;
|
|
22
|
+
lines?: import("node_modules/execa/types/arguments/specific.js").FdGenericOption<boolean>;
|
|
23
|
+
stripFinalNewline?: import("node_modules/execa/types/arguments/specific.js").FdGenericOption<boolean>;
|
|
24
|
+
maxBuffer?: import("node_modules/execa/types/arguments/specific.js").FdGenericOption<number>;
|
|
25
|
+
buffer?: import("node_modules/execa/types/arguments/specific.js").FdGenericOption<boolean>;
|
|
26
|
+
ipc?: boolean | undefined;
|
|
27
|
+
serialization?: "json" | "advanced" | undefined;
|
|
28
|
+
ipcInput?: import("execa").Message | undefined;
|
|
29
|
+
verbose?: import("node_modules/execa/types/verbose.js").VerboseOption;
|
|
30
|
+
reject?: boolean;
|
|
31
|
+
timeout?: number;
|
|
32
|
+
cancelSignal?: AbortSignal | undefined;
|
|
33
|
+
gracefulCancel?: boolean | undefined;
|
|
34
|
+
forceKillAfterDelay?: number | boolean | undefined;
|
|
35
|
+
killSignal?: keyof import("os").SignalConstants | number;
|
|
36
|
+
detached?: boolean | undefined;
|
|
37
|
+
cleanup?: boolean | undefined;
|
|
38
|
+
uid?: number;
|
|
39
|
+
gid?: number;
|
|
40
|
+
argv0?: string;
|
|
41
|
+
windowsHide?: boolean;
|
|
42
|
+
windowsVerbatimArguments?: boolean;
|
|
43
|
+
}>>;
|
|
3
44
|
export declare const logInfo: {
|
|
4
45
|
(...data: any[]): void;
|
|
5
46
|
(message?: any, ...optionalParams: any[]): void;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { babelConfig } from "./babel.config.cjs";
|
|
2
|
+
import { eslintFlatBaseConfig } from "./lint-config/eslint/flat/non-react-export.mjs";
|
|
3
|
+
import { eslintFlatBaseConfigStrict } from "./lint-config/eslint/flat/non-react-export.mjs";
|
|
4
|
+
import { eslintFlatConfig } from "./lint-config/eslint/flat/react-export.mjs";
|
|
5
|
+
import { eslintFlatConfigStrict } from "./lint-config/eslint/flat/react-export.mjs";
|
|
2
6
|
import { esConfig as eslintBaseConfig } from "./lint-config/eslint/non-react.cjs";
|
|
3
7
|
import { esReactConfig as eslintConfig } from "./lint-config/eslint/react.cjs";
|
|
4
|
-
import { stylelintConfig } from "./lint-config/stylelint.
|
|
8
|
+
import { stylelintConfig } from "./lint-config/stylelint/export.mjs";
|
|
5
9
|
import { prettierConfig } from "./lint-config/prettier.config.cjs";
|
|
6
10
|
import { commitlintConfig } from "./lint-config/commitlint.config.cjs";
|
|
7
11
|
import { jestConfig } from "./testing/jest.config.cjs";
|
|
8
12
|
import { jestNodeConfig } from "./testing/jest.node.config.cjs";
|
|
9
|
-
export { babelConfig, eslintBaseConfig, eslintConfig, stylelintConfig, prettierConfig, commitlintConfig, jestConfig, jestNodeConfig };
|
|
13
|
+
export { babelConfig, eslintFlatBaseConfig, eslintFlatBaseConfigStrict, eslintFlatConfig, eslintFlatConfigStrict, eslintBaseConfig, eslintConfig, stylelintConfig, prettierConfig, commitlintConfig, jestConfig, jestNodeConfig };
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
export type LIB_NAME = 'pui-cli';
|
|
2
2
|
export { babelConfig } from './babel.config.cjs';
|
|
3
|
+
export { eslintFlatBaseConfig, eslintFlatBaseConfigStrict, } from './lint-config/eslint/flat/non-react-export.mjs';
|
|
4
|
+
export { eslintFlatConfig, eslintFlatConfigStrict, } from './lint-config/eslint/flat/react-export.mjs';
|
|
5
|
+
/** @deprecated Use eslintFlatBaseConfig in eslint.config.mjs */
|
|
3
6
|
export { esConfig as eslintBaseConfig } from './lint-config/eslint/non-react.cjs';
|
|
7
|
+
/** @deprecated Use eslintFlatConfig in eslint.config.mjs */
|
|
4
8
|
export { esReactConfig as eslintConfig } from './lint-config/eslint/react.cjs';
|
|
5
|
-
export { stylelintConfig } from './lint-config/stylelint.
|
|
9
|
+
export { stylelintConfig } from './lint-config/stylelint/export.mjs';
|
|
6
10
|
export { prettierConfig } from './lint-config/prettier.config.cjs';
|
|
7
11
|
export { commitlintConfig } from './lint-config/commitlint.config.cjs';
|
|
8
12
|
export { jestConfig } from './testing/jest.config.cjs';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/** @param {Record<string, unknown>} tsRules - `typescriptRules` or `typescriptStrictRules` */
|
|
2
|
+
export function createBaseFlatConfigs(tsRules: Record<string, unknown>): any;
|
|
3
|
+
/** Default flat base — `no-unsafe-*` as warn in application TypeScript. */
|
|
4
|
+
export const baseFlatConfigs: any;
|
|
5
|
+
/** Strict flat base — `no-unsafe-*` as error in application TypeScript. */
|
|
6
|
+
export const baseFlatConfigsStrict: any;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** React — uses context.getFilename / getScope (eslint-plugin-react@7). */
|
|
2
|
+
/** @type {import('eslint').ESLint.Plugin} */
|
|
3
|
+
export const reactPlugin: import("eslint").ESLint.Plugin;
|
|
4
|
+
/** Redux-saga — uses context.getScope in no-yield-in-race. */
|
|
5
|
+
/** @type {import('eslint').ESLint.Plugin} */
|
|
6
|
+
export const reduxSagaPlugin: import("eslint").ESLint.Plugin;
|
|
7
|
+
/** Storybook flat presets — uses legacy context APIs (eslint-plugin-storybook@0.12). */
|
|
8
|
+
/** @type {import('eslint').Linter.Config[]} */
|
|
9
|
+
export const storybookFlatConfigs: import("eslint").Linter.Config[];
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { eslintFlatConfig, eslintFlatConfigStrict } from "./react-export.mjs";
|
|
2
|
+
export { eslintFlatBaseConfig, eslintFlatBaseConfigStrict } from "./non-react-export.mjs";
|
|
3
|
+
export { reactFlatConfigs, reactFlatConfigsStrict } from "./react.mjs";
|
|
4
|
+
export { nonReactFlatConfigs, nonReactFlatConfigsStrict } from "./non-react.mjs";
|
|
5
|
+
export { baseFlatConfigs, baseFlatConfigsStrict, createBaseFlatConfigs } from "./common.mjs";
|
|
6
|
+
export { storybookFiles, testFiles, testFixtureFiles, testJsxFiles } from "./presets.mjs";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/** Application and integration tests (Jest + relaxed type-checked rules). */
|
|
2
|
+
export const testFiles: string[];
|
|
3
|
+
/**
|
|
4
|
+
* Generated or vendored JS under test trees (checksum bundles, MSW endpoints, pinned assets).
|
|
5
|
+
* Not maintained source — relax structural rules only.
|
|
6
|
+
*/
|
|
7
|
+
export const testFixtureFiles: string[];
|
|
8
|
+
export const testJsxFiles: string[];
|
|
9
|
+
export const wdioSpecFiles: string[];
|
|
10
|
+
export const storybookFiles: string[];
|
|
11
|
+
/** @type {import('eslint').Linter.RulesRecord} */
|
|
12
|
+
export const sharedCoreRules: import("eslint").Linter.RulesRecord;
|
|
13
|
+
/** @type {import('eslint').Linter.RulesRecord} */
|
|
14
|
+
export const jestRecommendedRules: import("eslint").Linter.RulesRecord;
|
|
15
|
+
/** @type {import('eslint').Linter.RulesRecord} */
|
|
16
|
+
export const testingLibraryDomRules: import("eslint").Linter.RulesRecord;
|
|
17
|
+
/** @type {import('eslint').Linter.RulesRecord} */
|
|
18
|
+
export const testingLibraryReactRules: import("eslint").Linter.RulesRecord;
|
|
19
|
+
/** @type {import('eslint').Linter.RulesRecord} */
|
|
20
|
+
export const reactPresetRules: import("eslint").Linter.RulesRecord;
|
|
21
|
+
export const wdioPlugin: {
|
|
22
|
+
configs: {};
|
|
23
|
+
rules: {
|
|
24
|
+
"await-expect": import("eslint").Rule.RuleModule;
|
|
25
|
+
"no-debug": import("eslint").Rule.RuleModule;
|
|
26
|
+
"no-pause": import("eslint").Rule.RuleModule;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
/** @type {import('eslint').Linter.RulesRecord} */
|
|
30
|
+
export const wdioRecommendedRules: import("eslint").Linter.RulesRecord;
|
|
31
|
+
/** @type {Record<string, boolean>} */
|
|
32
|
+
export const wdioGlobals: Record<string, boolean>;
|
|
33
|
+
export { storybookFlatConfigs };
|
|
34
|
+
import { storybookFlatConfigs } from './compat.mjs';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Flat ESLint config for React + TypeScript PUI apps. */
|
|
2
|
+
export const eslintFlatConfig: import("eslint/config").Config[];
|
|
3
|
+
/** Strict flat ESLint config for React + TypeScript (errors on `no-unsafe-*` and `exhaustive-deps`). */
|
|
4
|
+
export const eslintFlatConfigStrict: import("eslint/config").Config[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Default React flat config — migration-friendly type-safety warnings. */
|
|
2
|
+
export const reactFlatConfigs: import("eslint/config").Config[];
|
|
3
|
+
/** Strict React flat config — `no-unsafe-*` and `exhaustive-deps` as error. */
|
|
4
|
+
export const reactFlatConfigsStrict: import("eslint/config").Config[];
|
|
@@ -0,0 +1,361 @@
|
|
|
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
|
+
};
|
|
48
|
+
/** Relaxed type-checked rules for test files (shared by default and strict configs). */
|
|
49
|
+
export const typescriptTestRelaxedRules: {
|
|
50
|
+
'@typescript-eslint/no-unsafe-assignment': string;
|
|
51
|
+
'@typescript-eslint/no-unsafe-member-access': string;
|
|
52
|
+
'@typescript-eslint/no-unsafe-call': string;
|
|
53
|
+
'@typescript-eslint/no-unsafe-argument': string;
|
|
54
|
+
'@typescript-eslint/no-unsafe-return': string;
|
|
55
|
+
'@typescript-eslint/unbound-method': string;
|
|
56
|
+
'@typescript-eslint/no-unsafe-declaration-merging': string;
|
|
57
|
+
'@typescript-eslint/no-unsafe-enum-comparison': string;
|
|
58
|
+
'@typescript-eslint/await-thenable': string;
|
|
59
|
+
'@typescript-eslint/prefer-promise-reject-errors': string;
|
|
60
|
+
'no-constant-binary-expression': string;
|
|
61
|
+
'valid-typeof': string;
|
|
62
|
+
'prefer-const': string;
|
|
63
|
+
};
|
|
64
|
+
/** Relaxed core rules for generated test fixture JS (checksum mocks, etc.). */
|
|
65
|
+
export const testFixtureRelaxedRules: {
|
|
66
|
+
'no-unused-vars': string;
|
|
67
|
+
'no-console': string;
|
|
68
|
+
'max-lines': string;
|
|
69
|
+
'max-statements': string;
|
|
70
|
+
complexity: string;
|
|
71
|
+
};
|
|
72
|
+
export const jsRules: {
|
|
73
|
+
'max-lines': (string | {
|
|
74
|
+
max: number;
|
|
75
|
+
skipComments: boolean;
|
|
76
|
+
})[];
|
|
77
|
+
'no-unused-vars': string;
|
|
78
|
+
'arrow-body-style': string[];
|
|
79
|
+
'class-methods-use-this': string;
|
|
80
|
+
'import-x/imports-first': string;
|
|
81
|
+
'import-x/newline-after-import': string;
|
|
82
|
+
'import-x/no-dynamic-require': string;
|
|
83
|
+
'import-x/no-extraneous-dependencies': string;
|
|
84
|
+
'import-x/no-named-as-default': string;
|
|
85
|
+
'import-x/no-unresolved': (string | {
|
|
86
|
+
caseSensitive: boolean;
|
|
87
|
+
caseSensitiveStrict: boolean;
|
|
88
|
+
})[];
|
|
89
|
+
'import-x/no-webpack-loader-syntax': string;
|
|
90
|
+
'import-x/prefer-default-export': string;
|
|
91
|
+
'import-x/default': string;
|
|
92
|
+
'import-x/namespace': string;
|
|
93
|
+
'import-x/extensions': (string | {
|
|
94
|
+
json: string;
|
|
95
|
+
js: string;
|
|
96
|
+
})[];
|
|
97
|
+
complexity: (string | {
|
|
98
|
+
max: number;
|
|
99
|
+
})[];
|
|
100
|
+
'max-depth': (string | {
|
|
101
|
+
max: number;
|
|
102
|
+
})[];
|
|
103
|
+
'max-lines-per-function': string;
|
|
104
|
+
'max-nested-callbacks': (string | {
|
|
105
|
+
max: number;
|
|
106
|
+
})[];
|
|
107
|
+
'max-params': (string | {
|
|
108
|
+
max: number;
|
|
109
|
+
})[];
|
|
110
|
+
'max-statements': (string | {
|
|
111
|
+
max: number;
|
|
112
|
+
})[];
|
|
113
|
+
'max-len': string;
|
|
114
|
+
'newline-per-chained-call': string;
|
|
115
|
+
'no-confusing-arrow': string;
|
|
116
|
+
'no-console': string;
|
|
117
|
+
'no-param-reassign': (string | {
|
|
118
|
+
props: boolean;
|
|
119
|
+
})[];
|
|
120
|
+
'prefer-template': string;
|
|
121
|
+
'require-yield': string;
|
|
122
|
+
};
|
|
123
|
+
export const typescriptRules: {
|
|
124
|
+
'max-lines': (string | {
|
|
125
|
+
max: number;
|
|
126
|
+
skipComments: boolean;
|
|
127
|
+
})[];
|
|
128
|
+
'@typescript-eslint/explicit-module-boundary-types': string;
|
|
129
|
+
'@typescript-eslint/explicit-function-return-type': string;
|
|
130
|
+
'@typescript-eslint/no-use-before-define': (string | {
|
|
131
|
+
functions: boolean;
|
|
132
|
+
classes: boolean;
|
|
133
|
+
variables: boolean;
|
|
134
|
+
typedefs: boolean;
|
|
135
|
+
})[];
|
|
136
|
+
'@typescript-eslint/unbound-method': (string | {
|
|
137
|
+
ignoreStatic: boolean;
|
|
138
|
+
})[];
|
|
139
|
+
'@typescript-eslint/no-floating-promises': (string | {
|
|
140
|
+
ignoreIIFE: boolean;
|
|
141
|
+
})[];
|
|
142
|
+
'@typescript-eslint/no-misused-promises': (string | {
|
|
143
|
+
checksVoidReturn: {
|
|
144
|
+
attributes: boolean;
|
|
145
|
+
};
|
|
146
|
+
})[];
|
|
147
|
+
'@typescript-eslint/no-unsafe-assignment': string;
|
|
148
|
+
'@typescript-eslint/no-unsafe-member-access': string;
|
|
149
|
+
'@typescript-eslint/no-unsafe-call': string;
|
|
150
|
+
'@typescript-eslint/no-unsafe-argument': string;
|
|
151
|
+
'@typescript-eslint/no-unsafe-return': string;
|
|
152
|
+
'@typescript-eslint/consistent-type-imports': (string | {
|
|
153
|
+
prefer: string;
|
|
154
|
+
fixStyle: string;
|
|
155
|
+
})[];
|
|
156
|
+
'@typescript-eslint/no-import-type-side-effects': string;
|
|
157
|
+
'no-unused-vars': string;
|
|
158
|
+
'@typescript-eslint/no-unused-vars': (string | {
|
|
159
|
+
argsIgnorePattern: string;
|
|
160
|
+
ignoreRestSiblings: boolean;
|
|
161
|
+
})[];
|
|
162
|
+
'arrow-body-style': string[];
|
|
163
|
+
'class-methods-use-this': string;
|
|
164
|
+
'import-x/imports-first': string;
|
|
165
|
+
'import-x/newline-after-import': string;
|
|
166
|
+
'import-x/no-dynamic-require': string;
|
|
167
|
+
'import-x/no-extraneous-dependencies': string;
|
|
168
|
+
'import-x/no-named-as-default': string;
|
|
169
|
+
'import-x/no-unresolved': (string | {
|
|
170
|
+
caseSensitive: boolean;
|
|
171
|
+
caseSensitiveStrict: boolean;
|
|
172
|
+
})[];
|
|
173
|
+
'import-x/no-webpack-loader-syntax': string;
|
|
174
|
+
'import-x/prefer-default-export': string;
|
|
175
|
+
'import-x/default': string;
|
|
176
|
+
'import-x/namespace': string;
|
|
177
|
+
'import-x/extensions': (string | {
|
|
178
|
+
json: string;
|
|
179
|
+
js: string;
|
|
180
|
+
})[];
|
|
181
|
+
complexity: (string | {
|
|
182
|
+
max: number;
|
|
183
|
+
})[];
|
|
184
|
+
'max-depth': (string | {
|
|
185
|
+
max: number;
|
|
186
|
+
})[];
|
|
187
|
+
'max-lines-per-function': string;
|
|
188
|
+
'max-nested-callbacks': (string | {
|
|
189
|
+
max: number;
|
|
190
|
+
})[];
|
|
191
|
+
'max-params': (string | {
|
|
192
|
+
max: number;
|
|
193
|
+
})[];
|
|
194
|
+
'max-statements': (string | {
|
|
195
|
+
max: number;
|
|
196
|
+
})[];
|
|
197
|
+
'max-len': string;
|
|
198
|
+
'newline-per-chained-call': string;
|
|
199
|
+
'no-confusing-arrow': string;
|
|
200
|
+
'no-console': string;
|
|
201
|
+
'no-param-reassign': (string | {
|
|
202
|
+
props: boolean;
|
|
203
|
+
})[];
|
|
204
|
+
'prefer-template': string;
|
|
205
|
+
'require-yield': string;
|
|
206
|
+
};
|
|
207
|
+
/** Stricter TypeScript rules (error on unsafe any usage). */
|
|
208
|
+
export const typescriptStrictRules: {
|
|
209
|
+
'@typescript-eslint/no-unsafe-assignment': string;
|
|
210
|
+
'@typescript-eslint/no-unsafe-member-access': string;
|
|
211
|
+
'@typescript-eslint/no-unsafe-call': string;
|
|
212
|
+
'@typescript-eslint/no-unsafe-argument': string;
|
|
213
|
+
'@typescript-eslint/no-unsafe-return': string;
|
|
214
|
+
'max-lines': (string | {
|
|
215
|
+
max: number;
|
|
216
|
+
skipComments: boolean;
|
|
217
|
+
})[];
|
|
218
|
+
'@typescript-eslint/explicit-module-boundary-types': string;
|
|
219
|
+
'@typescript-eslint/explicit-function-return-type': string;
|
|
220
|
+
'@typescript-eslint/no-use-before-define': (string | {
|
|
221
|
+
functions: boolean;
|
|
222
|
+
classes: boolean;
|
|
223
|
+
variables: boolean;
|
|
224
|
+
typedefs: boolean;
|
|
225
|
+
})[];
|
|
226
|
+
'@typescript-eslint/unbound-method': (string | {
|
|
227
|
+
ignoreStatic: boolean;
|
|
228
|
+
})[];
|
|
229
|
+
'@typescript-eslint/no-floating-promises': (string | {
|
|
230
|
+
ignoreIIFE: boolean;
|
|
231
|
+
})[];
|
|
232
|
+
'@typescript-eslint/no-misused-promises': (string | {
|
|
233
|
+
checksVoidReturn: {
|
|
234
|
+
attributes: boolean;
|
|
235
|
+
};
|
|
236
|
+
})[];
|
|
237
|
+
'@typescript-eslint/consistent-type-imports': (string | {
|
|
238
|
+
prefer: string;
|
|
239
|
+
fixStyle: string;
|
|
240
|
+
})[];
|
|
241
|
+
'@typescript-eslint/no-import-type-side-effects': string;
|
|
242
|
+
'no-unused-vars': string;
|
|
243
|
+
'@typescript-eslint/no-unused-vars': (string | {
|
|
244
|
+
argsIgnorePattern: string;
|
|
245
|
+
ignoreRestSiblings: boolean;
|
|
246
|
+
})[];
|
|
247
|
+
'arrow-body-style': string[];
|
|
248
|
+
'class-methods-use-this': string;
|
|
249
|
+
'import-x/imports-first': string;
|
|
250
|
+
'import-x/newline-after-import': string;
|
|
251
|
+
'import-x/no-dynamic-require': string;
|
|
252
|
+
'import-x/no-extraneous-dependencies': string;
|
|
253
|
+
'import-x/no-named-as-default': string;
|
|
254
|
+
'import-x/no-unresolved': (string | {
|
|
255
|
+
caseSensitive: boolean;
|
|
256
|
+
caseSensitiveStrict: boolean;
|
|
257
|
+
})[];
|
|
258
|
+
'import-x/no-webpack-loader-syntax': string;
|
|
259
|
+
'import-x/prefer-default-export': string;
|
|
260
|
+
'import-x/default': string;
|
|
261
|
+
'import-x/namespace': string;
|
|
262
|
+
'import-x/extensions': (string | {
|
|
263
|
+
json: string;
|
|
264
|
+
js: string;
|
|
265
|
+
})[];
|
|
266
|
+
complexity: (string | {
|
|
267
|
+
max: number;
|
|
268
|
+
})[];
|
|
269
|
+
'max-depth': (string | {
|
|
270
|
+
max: number;
|
|
271
|
+
})[];
|
|
272
|
+
'max-lines-per-function': string;
|
|
273
|
+
'max-nested-callbacks': (string | {
|
|
274
|
+
max: number;
|
|
275
|
+
})[];
|
|
276
|
+
'max-params': (string | {
|
|
277
|
+
max: number;
|
|
278
|
+
})[];
|
|
279
|
+
'max-statements': (string | {
|
|
280
|
+
max: number;
|
|
281
|
+
})[];
|
|
282
|
+
'max-len': string;
|
|
283
|
+
'newline-per-chained-call': string;
|
|
284
|
+
'no-confusing-arrow': string;
|
|
285
|
+
'no-console': string;
|
|
286
|
+
'no-param-reassign': (string | {
|
|
287
|
+
props: boolean;
|
|
288
|
+
})[];
|
|
289
|
+
'prefer-template': string;
|
|
290
|
+
'require-yield': string;
|
|
291
|
+
};
|
|
292
|
+
export const reactRules: {
|
|
293
|
+
'jsx-a11y/aria-props': string;
|
|
294
|
+
'jsx-a11y/heading-has-content': string;
|
|
295
|
+
'jsx-a11y/label-has-associated-control': (string | {
|
|
296
|
+
controlComponents: string[];
|
|
297
|
+
})[];
|
|
298
|
+
'jsx-a11y/label-has-for': string;
|
|
299
|
+
'jsx-a11y/mouse-events-have-key-events': string;
|
|
300
|
+
'jsx-a11y/role-has-required-aria-props': string;
|
|
301
|
+
'jsx-a11y/role-supports-aria-props': string;
|
|
302
|
+
'react/destructuring-assignment': string;
|
|
303
|
+
'react-hooks/rules-of-hooks': string;
|
|
304
|
+
'react-hooks/exhaustive-deps': string;
|
|
305
|
+
'react/jsx-closing-tag-location': string;
|
|
306
|
+
'react/forbid-prop-types': string;
|
|
307
|
+
'react/jsx-first-prop-new-line': string[];
|
|
308
|
+
'react/jsx-no-target-blank': string;
|
|
309
|
+
'react/jsx-props-no-spreading': string;
|
|
310
|
+
'react/jsx-uses-vars': string;
|
|
311
|
+
'react/require-default-props': string;
|
|
312
|
+
'react/require-extension': string;
|
|
313
|
+
'react/self-closing-comp': string;
|
|
314
|
+
'react/sort-comp': string;
|
|
315
|
+
'react/react-in-jsx-scope': string;
|
|
316
|
+
'react/jsx-filename-extension': (string | {
|
|
317
|
+
extensions: string[];
|
|
318
|
+
})[];
|
|
319
|
+
'react/function-component-definition': (string | {
|
|
320
|
+
namedComponents: string;
|
|
321
|
+
})[];
|
|
322
|
+
'react/prop-types': string;
|
|
323
|
+
'redux-saga/no-yield-in-race': string;
|
|
324
|
+
'redux-saga/yield-effects': string;
|
|
325
|
+
};
|
|
326
|
+
/** Stricter React rules (exhaustive-deps as error). */
|
|
327
|
+
export const reactStrictRules: {
|
|
328
|
+
'react-hooks/exhaustive-deps': string;
|
|
329
|
+
'jsx-a11y/aria-props': string;
|
|
330
|
+
'jsx-a11y/heading-has-content': string;
|
|
331
|
+
'jsx-a11y/label-has-associated-control': (string | {
|
|
332
|
+
controlComponents: string[];
|
|
333
|
+
})[];
|
|
334
|
+
'jsx-a11y/label-has-for': string;
|
|
335
|
+
'jsx-a11y/mouse-events-have-key-events': string;
|
|
336
|
+
'jsx-a11y/role-has-required-aria-props': string;
|
|
337
|
+
'jsx-a11y/role-supports-aria-props': string;
|
|
338
|
+
'react/destructuring-assignment': string;
|
|
339
|
+
'react-hooks/rules-of-hooks': string;
|
|
340
|
+
'react/jsx-closing-tag-location': string;
|
|
341
|
+
'react/forbid-prop-types': string;
|
|
342
|
+
'react/jsx-first-prop-new-line': string[];
|
|
343
|
+
'react/jsx-no-target-blank': string;
|
|
344
|
+
'react/jsx-props-no-spreading': string;
|
|
345
|
+
'react/jsx-uses-vars': string;
|
|
346
|
+
'react/require-default-props': string;
|
|
347
|
+
'react/require-extension': string;
|
|
348
|
+
'react/self-closing-comp': string;
|
|
349
|
+
'react/sort-comp': string;
|
|
350
|
+
'react/react-in-jsx-scope': string;
|
|
351
|
+
'react/jsx-filename-extension': (string | {
|
|
352
|
+
extensions: string[];
|
|
353
|
+
})[];
|
|
354
|
+
'react/function-component-definition': (string | {
|
|
355
|
+
namedComponents: string;
|
|
356
|
+
})[];
|
|
357
|
+
'react/prop-types': string;
|
|
358
|
+
'redux-saga/no-yield-in-race': string;
|
|
359
|
+
'redux-saga/yield-effects': string;
|
|
360
|
+
};
|
|
361
|
+
export const ignorePatterns: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { stylelintConfig, default } from "./config.mjs";
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
export let customSyntax: string;
|
|
4
|
-
let _extends: string[];
|
|
5
|
-
export { _extends as extends };
|
|
6
|
-
export let rules: {
|
|
7
|
-
"selector-type-no-unknown": null;
|
|
8
|
-
"function-no-unknown": null;
|
|
9
|
-
};
|
|
10
|
-
}
|
|
1
|
+
export { stylelintConfig };
|
|
2
|
+
import { stylelintConfig } from "./stylelint/export.mjs";
|
|
@@ -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,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
|
|
15
|
+
* @param _htmlWebpackPlugin
|
|
16
16
|
* @param {object} options Additional options for this module.
|
|
17
17
|
*/
|
|
18
|
-
constructor(
|
|
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;
|