@elliemae/pui-cli 9.0.0-alpha.11 → 9.0.0-alpha.13
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 +6 -4
- package/build/docs/404.html +4 -4
- package/build/docs/api/functions/loadRoutes/index.html +9 -9
- package/build/docs/api/index.html +8 -8
- package/build/docs/api/type-aliases/LIB_NAME/index.html +5 -5
- package/build/docs/api/variables/babelConfig/index.html +5 -28
- package/build/docs/api/variables/commitlintConfig/index.html +5 -8
- package/build/docs/api/variables/eslintFlatBaseConfig/index.html +6 -6
- package/build/docs/api/variables/eslintFlatBaseConfigStrict/index.html +6 -6
- package/build/docs/api/variables/eslintFlatConfig/index.html +6 -6
- package/build/docs/api/variables/eslintFlatConfigStrict/index.html +6 -6
- package/build/docs/api/variables/jestConfig/index.html +86 -86
- package/build/docs/api/variables/jestNodeConfig/index.html +86 -86
- package/build/docs/api/variables/lintStagedConfig/index.html +22 -12
- package/build/docs/api/variables/prettierConfig/index.html +5 -18
- package/build/docs/api/variables/stylelintConfig/index.html +5 -5
- package/build/docs/api/variables/vitestConfig/index.html +5 -5
- package/build/docs/assets/css/{styles.74603f39.css → styles.3cba4e67.css} +1 -1
- package/build/docs/assets/js/04ee7372.c6c3d513.js +1 -0
- package/build/docs/assets/js/0551d4dd.a6b1d9fa.js +1 -0
- package/build/docs/assets/js/0a1d0315.43980061.js +1 -0
- package/build/docs/assets/js/13097d8d.4ac8ef79.js +1 -0
- package/build/docs/assets/js/{16b7bc88.c3779e27.js → 16b7bc88.2ac57556.js} +1 -1
- package/build/docs/assets/js/{17896441.84339068.js → 17896441.705d85a0.js} +1 -1
- package/build/docs/assets/js/{1b9df811.aaa95da1.js → 1b9df811.ec75cfdc.js} +1 -1
- package/build/docs/assets/js/{232a0286.33b2782b.js → 232a0286.6f749ae5.js} +1 -1
- package/build/docs/assets/js/{2399.cc5803e0.js → 2399.5d123cba.js} +1 -1
- package/build/docs/assets/js/{37d86055.47211796.js → 37d86055.1e73f036.js} +1 -1
- package/build/docs/assets/js/3992.b9b54f94.js +2 -0
- package/build/docs/assets/js/4fb6949f.13bde4a8.js +1 -0
- package/build/docs/assets/js/5befad71.96f04f67.js +1 -0
- package/build/docs/assets/js/5d5f1db0.e7607cd2.js +1 -0
- package/build/docs/assets/js/5e8c322a.0b86bf5a.js +1 -0
- package/build/docs/assets/js/5e95c892.de377e27.js +1 -0
- package/build/docs/assets/js/{5fb3c522.da5628e8.js → 5fb3c522.3ec831ee.js} +1 -1
- package/build/docs/assets/js/6bd11e52.c61bfcd5.js +1 -0
- package/build/docs/assets/js/6e96545e.1b545333.js +1 -0
- package/build/docs/assets/js/{71f6d02b.cfd98385.js → 71f6d02b.4b381360.js} +1 -1
- package/build/docs/assets/js/{6704.2615a5c6.js → 7843.f4b19776.js} +1 -1
- package/build/docs/assets/js/80e87108.8c451f49.js +1 -0
- package/build/docs/assets/js/{8585.3cb09ff7.js → 8585.e2298db3.js} +1 -1
- package/build/docs/assets/js/{a7bd4aaa.30ffad02.js → a7bd4aaa.aceac89c.js} +1 -1
- package/build/docs/assets/js/a94703ab.248144c2.js +1 -0
- package/build/docs/assets/js/b7b585d8.7d50f3f6.js +1 -0
- package/build/docs/assets/js/{bde5209a.f5bca8b2.js → bde5209a.480cc8d8.js} +1 -1
- package/build/docs/assets/js/c377a04b.c6b6b394.js +1 -0
- package/build/docs/assets/js/{dfd75424.51c4e2cb.js → dfd75424.459da76b.js} +1 -1
- package/build/docs/assets/js/f736c962.ab424879.js +1 -0
- package/build/docs/assets/js/main.3ae939d4.js +2 -0
- package/build/docs/assets/js/runtime~main.9ecf1839.js +1 -0
- package/build/docs/eslint-rules-migration/index.html +43 -43
- package/build/docs/index.html +70 -71
- package/build/docs/pui-cli-9-migration/index.html +191 -70
- package/build/docs/sitemap.xml +1 -1
- package/build/docs/ssl-certificate-setup/index.html +23 -23
- package/build/docs/stylelint-migration/index.html +19 -21
- package/build/docs/usage-guide/index.html +91 -91
- package/dist/cjs/babel.config.js +124 -0
- package/dist/cjs/commands/storybook.js +33 -4
- package/dist/cjs/index.js +5 -9
- package/dist/cjs/lint-config/commitlint/export.mjs +1 -0
- package/dist/cjs/lint-config/commitlint.config.mjs +6 -0
- package/dist/cjs/lint-config/eslint/common.cjs +8 -1
- package/dist/cjs/lint-config/eslint/flat/compat.mjs +5 -5
- package/dist/cjs/lint-config/eslint/flat/rules.mjs +1 -0
- package/dist/cjs/lint-config/lint-staged.config.js +17 -5
- package/dist/cjs/lint-config/prettier/export.mjs +1 -0
- package/dist/cjs/lint-config/{prettier.config.cjs → prettier.config.mjs} +4 -1
- package/dist/cjs/skills/migrate-storybook-out-of-cjs/SKILL.md +242 -0
- package/dist/cjs/skills/migrate-to-pui-cli-9/SKILL.md +188 -25
- package/dist/cjs/testing/{jest.config.cjs → jest.config.mjs} +14 -6
- package/dist/{esm/testing/jest.node.config.cjs → cjs/testing/jest.node.config.mjs} +3 -2
- package/dist/cjs/testing/setup-textencoder.cjs +4 -0
- package/dist/cjs/webpack/webpack.storybook.js +62 -0
- package/dist/esm/babel.config.js +94 -0
- package/dist/esm/commands/storybook.js +22 -4
- package/dist/esm/index.js +5 -9
- package/dist/esm/lint-config/commitlint/export.mjs +1 -0
- package/dist/esm/lint-config/commitlint.config.mjs +6 -0
- package/dist/esm/lint-config/eslint/common.cjs +8 -1
- package/dist/esm/lint-config/eslint/flat/compat.mjs +5 -5
- package/dist/esm/lint-config/eslint/flat/rules.mjs +1 -0
- package/dist/esm/lint-config/lint-staged.config.js +17 -5
- package/dist/esm/lint-config/prettier/export.mjs +1 -0
- package/{lib/lint-config/prettier.config.cjs → dist/esm/lint-config/prettier.config.mjs} +4 -1
- package/dist/esm/skills/migrate-storybook-out-of-cjs/SKILL.md +242 -0
- package/dist/esm/skills/migrate-to-pui-cli-9/SKILL.md +188 -25
- package/dist/esm/testing/{jest.config.cjs → jest.config.mjs} +14 -6
- package/dist/{cjs/testing/jest.node.config.cjs → esm/testing/jest.node.config.mjs} +3 -2
- package/dist/esm/testing/setup-textencoder.cjs +4 -0
- package/dist/esm/webpack/webpack.storybook.js +61 -0
- package/dist/types/lib/babel.config.d.ts +3 -0
- package/dist/types/lib/commands/storybook.d.ts +1 -0
- package/dist/types/lib/index.d.ts +5 -9
- package/dist/types/lib/lint-config/commitlint/export.d.mts +1 -0
- package/dist/types/lib/lint-config/commitlint.config.d.mts +3 -0
- package/dist/types/lib/lint-config/eslint/common.d.cts +8 -2
- package/dist/types/lib/lint-config/eslint/flat/compat.d.mts +1 -1
- package/dist/types/lib/lint-config/eslint/non-react.d.cts +8 -1
- package/dist/types/lib/lint-config/eslint/react.d.cts +8 -1
- package/dist/types/lib/lint-config/eslint/typescript/non-react.d.cts +8 -1
- package/dist/types/lib/lint-config/eslint/typescript/react.d.cts +8 -1
- package/dist/types/lib/lint-config/lint-staged.config.d.ts +2 -2
- package/dist/types/lib/lint-config/prettier/export.d.mts +1 -0
- package/dist/types/lib/lint-config/prettier.config.d.mts +3 -0
- package/dist/types/lib/testing/setup-textencoder.d.cts +1 -0
- package/dist/types/lib/utils.d.cts +1 -1
- package/dist/types/lib/utils.d.ts +1 -1
- package/dist/types/lib/webpack/webpack.storybook.d.ts +2 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/lib/lint-config/commitlint/export.mjs +1 -0
- package/lib/lint-config/commitlint.config.mjs +6 -0
- package/lib/lint-config/eslint/common.cjs +8 -1
- package/lib/lint-config/eslint/flat/compat.mjs +5 -5
- package/lib/lint-config/eslint/flat/rules.mjs +1 -0
- package/lib/lint-config/lint-staged.config.js +20 -5
- package/lib/lint-config/prettier/export.mjs +1 -0
- package/{dist/esm/lint-config/prettier.config.cjs → lib/lint-config/prettier.config.mjs} +4 -1
- package/lib/skills/migrate-storybook-out-of-cjs/SKILL.md +242 -0
- package/lib/skills/migrate-to-pui-cli-9/SKILL.md +188 -25
- package/lib/testing/jest.config.mjs +124 -0
- package/lib/testing/jest.node.config.mjs +9 -0
- package/package.json +46 -36
- package/build/docs/api/variables/eslintBaseConfig/index.html +0 -132
- package/build/docs/api/variables/eslintConfig/index.html +0 -180
- package/build/docs/assets/js/04ee7372.eaa386ed.js +0 -1
- package/build/docs/assets/js/0551d4dd.ebb18f4f.js +0 -1
- package/build/docs/assets/js/0a1d0315.fc8f91a7.js +0 -1
- package/build/docs/assets/js/13097d8d.af480dfd.js +0 -1
- package/build/docs/assets/js/3992.0ac29b2f.js +0 -2
- package/build/docs/assets/js/4fb6949f.369cc1b9.js +0 -1
- package/build/docs/assets/js/5befad71.5f19afb5.js +0 -1
- package/build/docs/assets/js/5d5f1db0.c5aa5afa.js +0 -1
- package/build/docs/assets/js/5e8c322a.ef3b894b.js +0 -1
- package/build/docs/assets/js/5e95c892.f550b901.js +0 -1
- package/build/docs/assets/js/6bd11e52.08b95209.js +0 -1
- package/build/docs/assets/js/6e96545e.30c1b801.js +0 -1
- package/build/docs/assets/js/80e87108.f9507b95.js +0 -1
- package/build/docs/assets/js/a94703ab.f1796514.js +0 -1
- package/build/docs/assets/js/b7b585d8.6d53e73f.js +0 -1
- package/build/docs/assets/js/b8ac1d98.62684003.js +0 -1
- package/build/docs/assets/js/c377a04b.0f8625c6.js +0 -1
- package/build/docs/assets/js/e5f79924.c793a74d.js +0 -1
- package/build/docs/assets/js/f736c962.dbd0d004.js +0 -1
- package/build/docs/assets/js/main.7f815b7e.js +0 -2
- package/build/docs/assets/js/runtime~main.f7c5bef0.js +0 -1
- package/dist/cjs/babel.config.cjs +0 -97
- package/dist/cjs/index.cjs +0 -35
- package/dist/cjs/lint-config/commitlint.config.cjs +0 -1
- package/dist/cjs/lint-config/stylelint.config.cjs +0 -3
- package/dist/esm/babel.config.cjs +0 -97
- package/dist/esm/index.cjs +0 -35
- package/dist/esm/lint-config/commitlint.config.cjs +0 -1
- package/dist/esm/lint-config/stylelint.config.cjs +0 -3
- package/dist/types/lib/babel.config.d.cts +0 -59
- package/dist/types/lib/index.d.cts +0 -13
- package/dist/types/lib/lint-config/commitlint.config.d.cts +0 -4
- package/dist/types/lib/lint-config/prettier.config.d.cts +0 -8
- package/dist/types/lib/lint-config/stylelint.config.d.cts +0 -2
- package/lib/lint-config/commitlint.config.cjs +0 -1
- package/lib/lint-config/stylelint.config.cjs +0 -3
- /package/build/docs/assets/js/{3992.0ac29b2f.js.LICENSE.txt → 3992.b9b54f94.js.LICENSE.txt} +0 -0
- /package/build/docs/assets/js/{main.7f815b7e.js.LICENSE.txt → main.3ae939d4.js.LICENSE.txt} +0 -0
- /package/dist/types/lib/testing/{jest.config.d.cts → jest.config.d.mts} +0 -0
- /package/dist/types/lib/testing/{jest.node.config.d.cts → jest.node.config.d.mts} +0 -0
|
@@ -1,9 +1,20 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
import { fileURLToPath } from "node:url";
|
|
1
3
|
import webpack from "webpack";
|
|
2
4
|
import MiniCssExtractPlugin from "mini-css-extract-plugin";
|
|
3
5
|
import CopyWebpackPlugin from "copy-webpack-plugin";
|
|
4
6
|
import ResolveTypeScriptPlugin from "resolve-typescript-plugin";
|
|
5
7
|
import { getAlias, getLibraryAlias, getCompressionPlugins } from "./helpers.js";
|
|
8
|
+
import { loadRoutes } from "../server/appRoutes.js";
|
|
6
9
|
import { isApp } from "../utils.js";
|
|
10
|
+
const puiCliRequire = createRequire(fileURLToPath(import.meta.url));
|
|
11
|
+
const resolveStorybookAddon = (addonName) => {
|
|
12
|
+
try {
|
|
13
|
+
return puiCliRequire.resolve(addonName);
|
|
14
|
+
} catch {
|
|
15
|
+
return addonName;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
7
18
|
const IS_APP = isApp();
|
|
8
19
|
const CWD = process.cwd();
|
|
9
20
|
const getAdditionalPlugins = () => [
|
|
@@ -50,12 +61,50 @@ const getModuleRules = () => [
|
|
|
50
61
|
type: "asset/resource"
|
|
51
62
|
}
|
|
52
63
|
];
|
|
64
|
+
const setupStorybookMiddlewares = (middlewares, devServer) => {
|
|
65
|
+
if (devServer.app) {
|
|
66
|
+
loadRoutes(devServer.app).catch((err) => {
|
|
67
|
+
console.error(err);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
return middlewares;
|
|
71
|
+
};
|
|
72
|
+
const usesSwcLoader = (rule) => {
|
|
73
|
+
if (typeof rule.loader === "string" && rule.loader.includes("swc-loader")) {
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
const uses = Array.isArray(rule.use) ? rule.use : rule.use ? [rule.use] : [];
|
|
77
|
+
return uses.some((useEntry) => {
|
|
78
|
+
const loader = typeof useEntry === "string" ? useEntry : useEntry.loader;
|
|
79
|
+
return loader?.includes("swc-loader");
|
|
80
|
+
});
|
|
81
|
+
};
|
|
82
|
+
const removeSwcLoaderRules = (rules = []) => rules.filter((rule) => !usesSwcLoader(rule)).map((rule) => {
|
|
83
|
+
if (rule.oneOf) {
|
|
84
|
+
return {
|
|
85
|
+
...rule,
|
|
86
|
+
oneOf: removeSwcLoaderRules(rule.oneOf)
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
if (rule.rules) {
|
|
90
|
+
return {
|
|
91
|
+
...rule,
|
|
92
|
+
rules: removeSwcLoaderRules(rule.rules)
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
return rule;
|
|
96
|
+
});
|
|
53
97
|
const webpackFinal = (config, { configType }) => {
|
|
54
98
|
const isProd = configType === "PRODUCTION";
|
|
55
99
|
const fileLoaderRule = config?.module?.rules?.find?.(
|
|
56
100
|
(rule) => rule.test?.test?.(".svg")
|
|
57
101
|
);
|
|
58
102
|
if (fileLoaderRule) fileLoaderRule.exclude = /\.svg$/i;
|
|
103
|
+
if (config.module?.rules) {
|
|
104
|
+
config.module.rules = removeSwcLoaderRules(
|
|
105
|
+
config.module.rules
|
|
106
|
+
);
|
|
107
|
+
}
|
|
59
108
|
config?.module?.rules?.unshift(...getModuleRules());
|
|
60
109
|
config?.plugins?.push(...getAdditionalPlugins());
|
|
61
110
|
if (isProd) {
|
|
@@ -84,6 +133,17 @@ const webpackFinal = (config, { configType }) => {
|
|
|
84
133
|
config.externals["@elliemae/pui-diagnostics"] = "emuiDiagnostics";
|
|
85
134
|
config.externals["@elliemae/pui-logrocket"] = "emuiLogrocket";
|
|
86
135
|
}
|
|
136
|
+
if (!isProd) {
|
|
137
|
+
const existingDevServer = config.devServer ?? {};
|
|
138
|
+
const existingSetupMiddlewares = existingDevServer.setupMiddlewares;
|
|
139
|
+
config.devServer = {
|
|
140
|
+
...existingDevServer,
|
|
141
|
+
setupMiddlewares: (middlewares, devServer) => {
|
|
142
|
+
const nextMiddlewares = typeof existingSetupMiddlewares === "function" ? existingSetupMiddlewares(middlewares, devServer) : middlewares;
|
|
143
|
+
return setupStorybookMiddlewares(nextMiddlewares, devServer);
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
}
|
|
87
147
|
return config;
|
|
88
148
|
};
|
|
89
149
|
const managerWebpack = (config) => {
|
|
@@ -93,5 +153,6 @@ const managerWebpack = (config) => {
|
|
|
93
153
|
};
|
|
94
154
|
export {
|
|
95
155
|
managerWebpack,
|
|
156
|
+
resolveStorybookAddon,
|
|
96
157
|
webpackFinal
|
|
97
158
|
};
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
export type LIB_NAME = 'pui-cli';
|
|
2
|
-
export { babelConfig } from './babel.config.
|
|
2
|
+
export { babelConfig } from './babel.config.js';
|
|
3
3
|
export { eslintFlatBaseConfig, eslintFlatBaseConfigStrict, } from './lint-config/eslint/flat/non-react-export.mjs';
|
|
4
4
|
export { eslintFlatConfig, eslintFlatConfigStrict, } from './lint-config/eslint/flat/react-export.mjs';
|
|
5
|
-
/** @deprecated Use eslintFlatBaseConfig in eslint.config.mjs */
|
|
6
|
-
export { esConfig as eslintBaseConfig } from './lint-config/eslint/non-react.cjs';
|
|
7
|
-
/** @deprecated Use eslintFlatConfig in eslint.config.mjs */
|
|
8
|
-
export { esReactConfig as eslintConfig } from './lint-config/eslint/react.cjs';
|
|
9
5
|
export { stylelintConfig } from './lint-config/stylelint/export.mjs';
|
|
10
|
-
export { prettierConfig } from './lint-config/prettier.config.
|
|
11
|
-
export { commitlintConfig } from './lint-config/commitlint.config.
|
|
12
|
-
export { jestConfig } from './testing/jest.config.
|
|
6
|
+
export { prettierConfig } from './lint-config/prettier.config.mjs';
|
|
7
|
+
export { commitlintConfig } from './lint-config/commitlint.config.mjs';
|
|
8
|
+
export { jestConfig } from './testing/jest.config.mjs';
|
|
13
9
|
export { vitestConfig } from './testing/vitest.config.js';
|
|
14
|
-
export { jestNodeConfig } from './testing/jest.node.config.
|
|
10
|
+
export { jestNodeConfig } from './testing/jest.node.config.mjs';
|
|
15
11
|
export { lintStagedConfig } from './lint-config/lint-staged.config.js';
|
|
16
12
|
export { loadRoutes } from './server/appRoutes.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { commitlintConfig, default } from "../commitlint.config.mjs";
|
|
@@ -40,7 +40,14 @@ export namespace baseConfig {
|
|
|
40
40
|
}
|
|
41
41
|
export const basePlugins: string[];
|
|
42
42
|
export const baseRules: {
|
|
43
|
-
"prettier/prettier": (string |
|
|
43
|
+
"prettier/prettier": (string | {
|
|
44
|
+
printWidth: number;
|
|
45
|
+
tabWidth: number;
|
|
46
|
+
useTabs: boolean;
|
|
47
|
+
semi: boolean;
|
|
48
|
+
singleQuote: boolean;
|
|
49
|
+
trailingComma: string;
|
|
50
|
+
})[];
|
|
44
51
|
"arrow-body-style": (string | number)[];
|
|
45
52
|
"class-methods-use-this": number;
|
|
46
53
|
"import/imports-first": number;
|
|
@@ -127,4 +134,3 @@ export const reactRules: {
|
|
|
127
134
|
"redux-saga/no-yield-in-race": number;
|
|
128
135
|
"redux-saga/yield-effects": number;
|
|
129
136
|
};
|
|
130
|
-
import prettierOptions = require("../prettier.config.cjs");
|
|
@@ -4,6 +4,6 @@ export const reactPlugin: import("eslint").ESLint.Plugin;
|
|
|
4
4
|
/** Redux-saga — uses context.getScope in no-yield-in-race. */
|
|
5
5
|
/** @type {import('eslint').ESLint.Plugin} */
|
|
6
6
|
export const reduxSagaPlugin: import("eslint").ESLint.Plugin;
|
|
7
|
-
/** Storybook flat presets —
|
|
7
|
+
/** Storybook flat presets — native flat config (eslint-plugin-storybook@10). */
|
|
8
8
|
/** @type {import('eslint').Linter.Config[]} */
|
|
9
9
|
export const storybookFlatConfigs: import("eslint").Linter.Config[];
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
export const esConfig: {
|
|
2
2
|
extends: string[];
|
|
3
3
|
rules: {
|
|
4
|
-
"prettier/prettier": (string |
|
|
4
|
+
"prettier/prettier": (string | {
|
|
5
|
+
printWidth: number;
|
|
6
|
+
tabWidth: number;
|
|
7
|
+
useTabs: boolean;
|
|
8
|
+
semi: boolean;
|
|
9
|
+
singleQuote: boolean;
|
|
10
|
+
trailingComma: string;
|
|
11
|
+
})[];
|
|
5
12
|
"arrow-body-style": (string | number)[];
|
|
6
13
|
"class-methods-use-this": number;
|
|
7
14
|
"import/imports-first": number;
|
|
@@ -31,7 +31,14 @@ export const esReactConfig: {
|
|
|
31
31
|
})[];
|
|
32
32
|
"redux-saga/no-yield-in-race": number;
|
|
33
33
|
"redux-saga/yield-effects": number;
|
|
34
|
-
"prettier/prettier": (string |
|
|
34
|
+
"prettier/prettier": (string | {
|
|
35
|
+
printWidth: number;
|
|
36
|
+
tabWidth: number;
|
|
37
|
+
useTabs: boolean;
|
|
38
|
+
semi: boolean;
|
|
39
|
+
singleQuote: boolean;
|
|
40
|
+
trailingComma: string;
|
|
41
|
+
})[];
|
|
35
42
|
"arrow-body-style": (string | number)[];
|
|
36
43
|
"class-methods-use-this": number;
|
|
37
44
|
"import/imports-first": number;
|
|
@@ -19,7 +19,14 @@ export const tsConfig: {
|
|
|
19
19
|
'@typescript-eslint/no-floating-promises': (string | {
|
|
20
20
|
ignoreIIFE: boolean;
|
|
21
21
|
})[];
|
|
22
|
-
"prettier/prettier": (string |
|
|
22
|
+
"prettier/prettier": (string | {
|
|
23
|
+
printWidth: number;
|
|
24
|
+
tabWidth: number;
|
|
25
|
+
useTabs: boolean;
|
|
26
|
+
semi: boolean;
|
|
27
|
+
singleQuote: boolean;
|
|
28
|
+
trailingComma: string;
|
|
29
|
+
})[];
|
|
23
30
|
"arrow-body-style": (string | number)[];
|
|
24
31
|
"class-methods-use-this": number;
|
|
25
32
|
"import/imports-first": number;
|
|
@@ -50,7 +50,14 @@ export const tsReactConfig: {
|
|
|
50
50
|
'@typescript-eslint/no-floating-promises': (string | {
|
|
51
51
|
ignoreIIFE: boolean;
|
|
52
52
|
})[];
|
|
53
|
-
"prettier/prettier": (string |
|
|
53
|
+
"prettier/prettier": (string | {
|
|
54
|
+
printWidth: number;
|
|
55
|
+
tabWidth: number;
|
|
56
|
+
useTabs: boolean;
|
|
57
|
+
semi: boolean;
|
|
58
|
+
singleQuote: boolean;
|
|
59
|
+
trailingComma: string;
|
|
60
|
+
})[];
|
|
54
61
|
"arrow-body-style": (string | number)[];
|
|
55
62
|
"class-methods-use-this": number;
|
|
56
63
|
"import/imports-first": number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { prettierConfig, default } from "../prettier.config.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import webpack, { type Configuration } from 'webpack';
|
|
2
|
+
/** Resolve Storybook addons from pui-cli's bundled dependencies. */
|
|
3
|
+
export declare const resolveStorybookAddon: (addonName: string) => string;
|
|
2
4
|
export declare const webpackFinal: (config: Configuration, { configType }: {
|
|
3
5
|
configType: string;
|
|
4
6
|
}) => webpack.Configuration;
|