@elliemae/pui-cli 9.0.0-next.50 → 9.0.0-next.51
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/app.tsconfig.json +4 -2
- package/dist/cjs/babel.config.js +99 -0
- package/dist/cjs/commands/lint.js +2 -2
- package/dist/cjs/index.cjs +0 -14
- package/dist/cjs/index.js +9 -9
- package/dist/cjs/lint-config/commitlint.config.js +26 -0
- package/dist/cjs/lint-config/eslint/config.js +186 -0
- package/dist/cjs/lint-config/eslint/react.js +107 -0
- package/dist/cjs/lint-config/eslint/typescript/config.js +97 -0
- package/dist/cjs/lint-config/prettier.config.js +31 -0
- package/dist/esm/babel.config.js +79 -0
- package/dist/esm/commands/lint.js +2 -2
- package/dist/esm/index.cjs +0 -14
- package/dist/esm/index.js +9 -9
- package/dist/esm/lint-config/commitlint.config.js +6 -0
- package/dist/esm/lint-config/eslint/config.js +155 -0
- package/dist/esm/lint-config/eslint/react.js +76 -0
- package/dist/esm/lint-config/eslint/typescript/config.js +67 -0
- package/dist/esm/lint-config/{prettier.config.cjs → prettier.config.js} +5 -2
- package/dist/types/docusaurus.config.d.ts +1 -0
- package/dist/types/docusaurus.config.d.ts.map +1 -0
- package/dist/types/lib/{babel.config.d.cts → babel.config.d.ts} +2 -2
- package/dist/types/lib/babel.config.d.ts.map +1 -0
- package/dist/types/lib/cli.d.ts +1 -0
- package/dist/types/lib/cli.d.ts.map +1 -0
- package/dist/types/lib/commands/build.d.ts +1 -0
- package/dist/types/lib/commands/build.d.ts.map +1 -0
- package/dist/types/lib/commands/codemod.d.ts +1 -0
- package/dist/types/lib/commands/codemod.d.ts.map +1 -0
- package/dist/types/lib/commands/gendoc.d.ts +1 -0
- package/dist/types/lib/commands/gendoc.d.ts.map +1 -0
- package/dist/types/lib/commands/lint.d.ts +1 -0
- package/dist/types/lib/commands/lint.d.ts.map +1 -0
- package/dist/types/lib/commands/pack.d.ts +1 -0
- package/dist/types/lib/commands/pack.d.ts.map +1 -0
- package/dist/types/lib/commands/start.d.ts +1 -0
- package/dist/types/lib/commands/start.d.ts.map +1 -0
- package/dist/types/lib/commands/storybook.d.ts +1 -0
- package/dist/types/lib/commands/storybook.d.ts.map +1 -0
- package/dist/types/lib/commands/test.d.ts +1 -0
- package/dist/types/lib/commands/test.d.ts.map +1 -0
- package/dist/types/lib/commands/tscheck.d.ts +1 -0
- package/dist/types/lib/commands/tscheck.d.ts.map +1 -0
- package/dist/types/lib/commands/utils.d.ts +2 -2
- package/dist/types/lib/commands/utils.d.ts.map +1 -0
- package/dist/types/lib/commands/version.d.ts +1 -0
- package/dist/types/lib/commands/version.d.ts.map +1 -0
- package/dist/types/lib/commands/vitest.d.ts +1 -0
- package/dist/types/lib/commands/vitest.d.ts.map +1 -0
- package/dist/types/lib/index.d.cts +2 -6
- package/dist/types/lib/index.d.cts.map +1 -0
- package/dist/types/lib/index.d.ts +8 -7
- package/dist/types/lib/index.d.ts.map +1 -0
- package/dist/types/lib/lint-config/{commitlint.config.d.cts → commitlint.config.d.ts} +1 -0
- package/dist/types/lib/lint-config/commitlint.config.d.ts.map +1 -0
- package/dist/types/lib/lint-config/eslint/config.d.ts +2 -0
- package/dist/types/lib/lint-config/eslint/config.d.ts.map +1 -0
- package/dist/types/lib/lint-config/eslint/react.d.ts +2 -0
- package/dist/types/lib/lint-config/eslint/react.d.ts.map +1 -0
- package/dist/types/lib/lint-config/eslint/typescript/config.d.ts +2 -0
- package/dist/types/lib/lint-config/eslint/typescript/config.d.ts.map +1 -0
- package/dist/types/lib/lint-config/lint-staged.config.d.ts +4 -3
- package/dist/types/lib/lint-config/lint-staged.config.d.ts.map +1 -0
- package/dist/types/lib/lint-config/prettier.config.d.ts +3 -0
- package/dist/types/lib/lint-config/prettier.config.d.ts.map +1 -0
- package/dist/types/lib/lint-config/stylelint.config.d.ts +6 -5
- package/dist/types/lib/lint-config/stylelint.config.d.ts.map +1 -0
- package/dist/types/lib/monorepo/delete-merged-tags.d.ts +1 -0
- package/dist/types/lib/monorepo/delete-merged-tags.d.ts.map +1 -0
- package/dist/types/lib/monorepo/set-registry-version.d.ts +1 -0
- package/dist/types/lib/monorepo/set-registry-version.d.ts.map +1 -0
- package/dist/types/lib/monorepo/set-workspace-version.d.ts +1 -0
- package/dist/types/lib/monorepo/set-workspace-version.d.ts.map +1 -0
- package/dist/types/lib/monorepo/utils.d.cts +1 -0
- package/dist/types/lib/monorepo/utils.d.cts.map +1 -0
- package/dist/types/lib/monorepo/utils.d.ts +1 -0
- package/dist/types/lib/monorepo/utils.d.ts.map +1 -0
- package/dist/types/lib/pui-config.d.ts +1 -0
- package/dist/types/lib/pui-config.d.ts.map +1 -0
- package/dist/types/lib/release.config.d.ts +1 -0
- package/dist/types/lib/release.config.d.ts.map +1 -0
- package/dist/types/lib/server/appRoutes.d.ts +1 -0
- package/dist/types/lib/server/appRoutes.d.ts.map +1 -0
- package/dist/types/lib/server/csp.d.ts +1 -0
- package/dist/types/lib/server/csp.d.ts.map +1 -0
- package/dist/types/lib/server/index.d.ts +1 -0
- package/dist/types/lib/server/index.d.ts.map +1 -0
- package/dist/types/lib/server/logger.d.ts +1 -0
- package/dist/types/lib/server/logger.d.ts.map +1 -0
- package/dist/types/lib/server/middlewares.d.ts +1 -0
- package/dist/types/lib/server/middlewares.d.ts.map +1 -0
- package/dist/types/lib/server/utils.d.ts +1 -0
- package/dist/types/lib/server/utils.d.ts.map +1 -0
- package/dist/types/lib/server/wsServer.d.ts +1 -0
- package/dist/types/lib/server/wsServer.d.ts.map +1 -0
- package/dist/types/lib/testing/ExtendedJSDomEnv.d.cts +1 -0
- package/dist/types/lib/testing/ExtendedJSDomEnv.d.cts.map +1 -0
- package/dist/types/lib/testing/extended/axe-core/getMessageAndPass.d.ts +1 -0
- package/dist/types/lib/testing/extended/axe-core/getMessageAndPass.d.ts.map +1 -0
- package/dist/types/lib/testing/extended/axe-core/index.d.ts +1 -0
- package/dist/types/lib/testing/extended/axe-core/index.d.ts.map +1 -0
- package/dist/types/lib/testing/extended/axe-core/reporter.d.ts +1 -0
- package/dist/types/lib/testing/extended/axe-core/reporter.d.ts.map +1 -0
- package/dist/types/lib/testing/extended/axe-core/shouldIgnoreNodeViolation.d.ts +1 -0
- package/dist/types/lib/testing/extended/axe-core/shouldIgnoreNodeViolation.d.ts.map +1 -0
- package/dist/types/lib/testing/extended/axe-core/toHaveNoViolations.d.ts +1 -0
- package/dist/types/lib/testing/extended/axe-core/toHaveNoViolations.d.ts.map +1 -0
- package/dist/types/lib/testing/jest.config.d.cts +1 -0
- package/dist/types/lib/testing/jest.config.d.cts.map +1 -0
- package/dist/types/lib/testing/jest.node.config.d.cts +1 -0
- package/dist/types/lib/testing/jest.node.config.d.cts.map +1 -0
- package/dist/types/lib/testing/jest.polyfills.d.cts +1 -0
- package/dist/types/lib/testing/jest.polyfills.d.cts.map +1 -0
- package/dist/types/lib/testing/mocks/axios.d.ts +1 -0
- package/dist/types/lib/testing/mocks/axios.d.ts.map +1 -0
- package/dist/types/lib/testing/mocks/cssModule.d.ts +1 -0
- package/dist/types/lib/testing/mocks/cssModule.d.ts.map +1 -0
- package/dist/types/lib/testing/mocks/html.d.ts +1 -0
- package/dist/types/lib/testing/mocks/html.d.ts.map +1 -0
- package/dist/types/lib/testing/mocks/image.d.ts +1 -0
- package/dist/types/lib/testing/mocks/image.d.ts.map +1 -0
- package/dist/types/lib/testing/mocks/matchMedia.d.ts +1 -0
- package/dist/types/lib/testing/mocks/matchMedia.d.ts.map +1 -0
- package/dist/types/lib/testing/mocks/pui-app-loader.d.ts +1 -0
- package/dist/types/lib/testing/mocks/pui-app-loader.d.ts.map +1 -0
- package/dist/types/lib/testing/mocks/pui-diagnostics.d.ts +1 -0
- package/dist/types/lib/testing/mocks/pui-diagnostics.d.ts.map +1 -0
- package/dist/types/lib/testing/mocks/pui-user-monitoring.d.ts +1 -0
- package/dist/types/lib/testing/mocks/pui-user-monitoring.d.ts.map +1 -0
- package/dist/types/lib/testing/mocks/retry-axios.d.ts +1 -0
- package/dist/types/lib/testing/mocks/retry-axios.d.ts.map +1 -0
- package/dist/types/lib/testing/mocks/svg.d.ts +1 -0
- package/dist/types/lib/testing/mocks/svg.d.ts.map +1 -0
- package/dist/types/lib/testing/mocks/webpack-hmr.d.ts +1 -0
- package/dist/types/lib/testing/mocks/webpack-hmr.d.ts.map +1 -0
- package/dist/types/lib/testing/resolver.d.cts +1 -0
- package/dist/types/lib/testing/resolver.d.cts.map +1 -0
- package/dist/types/lib/testing/setup-react-env.d.ts +1 -0
- package/dist/types/lib/testing/setup-react-env.d.ts.map +1 -0
- package/dist/types/lib/testing/setup-test-env.d.ts +1 -0
- package/dist/types/lib/testing/setup-test-env.d.ts.map +1 -0
- package/dist/types/lib/testing/setup-tests.d.ts +1 -0
- package/dist/types/lib/testing/setup-tests.d.ts.map +1 -0
- package/dist/types/lib/testing/vitest.config.d.ts +1 -0
- package/dist/types/lib/testing/vitest.config.d.ts.map +1 -0
- package/dist/types/lib/tests/basic.test.d.ts +1 -0
- package/dist/types/lib/tests/basic.test.d.ts.map +1 -0
- package/dist/types/lib/transpile/esbuild.d.ts +1 -0
- package/dist/types/lib/transpile/esbuild.d.ts.map +1 -0
- package/dist/types/lib/transpile/react-shim.d.ts +1 -0
- package/dist/types/lib/transpile/react-shim.d.ts.map +1 -0
- package/dist/types/lib/transpile/swcrc.config.d.cts +1 -0
- package/dist/types/lib/transpile/swcrc.config.d.cts.map +1 -0
- package/dist/types/lib/typedoc.d.cts +1 -0
- package/dist/types/lib/typedoc.d.cts.map +1 -0
- package/dist/types/lib/update-notifier.d.ts +1 -0
- package/dist/types/lib/update-notifier.d.ts.map +1 -0
- package/dist/types/lib/utils.d.cts +1 -0
- package/dist/types/lib/utils.d.cts.map +1 -0
- package/dist/types/lib/utils.d.ts +1 -0
- package/dist/types/lib/utils.d.ts.map +1 -0
- package/dist/types/lib/webpack/helpers.d.ts +1 -0
- package/dist/types/lib/webpack/helpers.d.ts.map +1 -0
- package/dist/types/lib/webpack/webpack.base.babel.d.ts +1 -0
- package/dist/types/lib/webpack/webpack.base.babel.d.ts.map +1 -0
- package/dist/types/lib/webpack/webpack.dev.babel.d.ts +1 -0
- package/dist/types/lib/webpack/webpack.dev.babel.d.ts.map +1 -0
- package/dist/types/lib/webpack/webpack.lib.base.babel.d.ts +1 -0
- package/dist/types/lib/webpack/webpack.lib.base.babel.d.ts.map +1 -0
- package/dist/types/lib/webpack/webpack.lib.dev.babel.d.ts +1 -0
- package/dist/types/lib/webpack/webpack.lib.dev.babel.d.ts.map +1 -0
- package/dist/types/lib/webpack/webpack.lib.prod.babel.d.ts +1 -0
- package/dist/types/lib/webpack/webpack.lib.prod.babel.d.ts.map +1 -0
- package/dist/types/lib/webpack/webpack.prod.babel.d.ts +1 -0
- package/dist/types/lib/webpack/webpack.prod.babel.d.ts.map +1 -0
- package/dist/types/lib/webpack/webpack.storybook.d.ts +1 -0
- package/dist/types/lib/webpack/webpack.storybook.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/library.tsconfig.json +6 -1
- package/package.json +65 -65
- package/dist/cjs/babel.config.cjs +0 -97
- package/dist/cjs/dummy.js +0 -1
- package/dist/cjs/lint-config/commitlint.config.cjs +0 -1
- package/dist/cjs/lint-config/eslint/common.cjs +0 -164
- package/dist/cjs/lint-config/eslint/non-react.cjs +0 -14
- package/dist/cjs/lint-config/eslint/react.cjs +0 -26
- package/dist/cjs/lint-config/eslint/typescript/common.cjs +0 -49
- package/dist/cjs/lint-config/eslint/typescript/non-react.cjs +0 -12
- package/dist/cjs/lint-config/eslint/typescript/react.cjs +0 -19
- package/dist/cjs/lint-config/prettier.config.cjs +0 -8
- package/dist/esm/babel.config.cjs +0 -97
- package/dist/esm/dummy.js +0 -0
- package/dist/esm/lint-config/commitlint.config.cjs +0 -1
- package/dist/esm/lint-config/eslint/common.cjs +0 -164
- package/dist/esm/lint-config/eslint/non-react.cjs +0 -14
- package/dist/esm/lint-config/eslint/react.cjs +0 -26
- package/dist/esm/lint-config/eslint/typescript/common.cjs +0 -49
- package/dist/esm/lint-config/eslint/typescript/non-react.cjs +0 -12
- package/dist/esm/lint-config/eslint/typescript/react.cjs +0 -19
- package/dist/types/lib/dummy.d.ts +0 -0
- package/dist/types/lib/lint-config/eslint/common.d.cts +0 -136
- package/dist/types/lib/lint-config/eslint/non-react.d.cts +0 -103
- package/dist/types/lib/lint-config/eslint/react.d.cts +0 -133
- package/dist/types/lib/lint-config/eslint/typescript/common.d.cts +0 -40
- package/dist/types/lib/lint-config/eslint/typescript/non-react.d.cts +0 -97
- package/dist/types/lib/lint-config/eslint/typescript/react.d.cts +0 -128
- package/dist/types/lib/lint-config/prettier.config.d.cts +0 -8
package/library.tsconfig.json
CHANGED
|
@@ -16,7 +16,12 @@
|
|
|
16
16
|
"preserveConstEnums": true,
|
|
17
17
|
"sourceMap": true,
|
|
18
18
|
"declaration": true,
|
|
19
|
-
"
|
|
19
|
+
"declarationMap": true,
|
|
20
|
+
"emitDeclarationOnly": true,
|
|
21
|
+
"composite": true,
|
|
22
|
+
"noEmitOnError": false,
|
|
23
|
+
"noImplicitOverride": true,
|
|
24
|
+
"newLine": "lf"
|
|
20
25
|
},
|
|
21
26
|
"$schema": "https://json.schemastore.org/tsconfig",
|
|
22
27
|
"display": "pui-cli library"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/pui-cli",
|
|
3
|
-
"version": "9.0.0-next.
|
|
3
|
+
"version": "9.0.0-next.51",
|
|
4
4
|
"description": "ICE MT UI Platform CLI",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/cjs/index.cjs",
|
|
@@ -78,55 +78,55 @@
|
|
|
78
78
|
"indent": 4
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@axe-core/react": "~4.9.
|
|
82
|
-
"@babel/cli": "~7.24.
|
|
83
|
-
"@babel/core": "~7.24.
|
|
84
|
-
"@babel/eslint-parser": "~7.24.
|
|
85
|
-
"@babel/node": "~7.
|
|
81
|
+
"@axe-core/react": "~4.9.1",
|
|
82
|
+
"@babel/cli": "~7.24.6",
|
|
83
|
+
"@babel/core": "~7.24.6",
|
|
84
|
+
"@babel/eslint-parser": "~7.24.6",
|
|
85
|
+
"@babel/node": "~7.24.6",
|
|
86
86
|
"@babel/plugin-proposal-class-properties": "~7.18.6",
|
|
87
|
-
"@babel/plugin-proposal-export-default-from": "~7.24.
|
|
87
|
+
"@babel/plugin-proposal-export-default-from": "~7.24.6",
|
|
88
88
|
"@babel/plugin-syntax-dynamic-import": "~7.8.3",
|
|
89
|
-
"@babel/plugin-syntax-import-assertions": "~7.24.
|
|
90
|
-
"@babel/plugin-transform-modules-commonjs": "~7.24.
|
|
91
|
-
"@babel/plugin-transform-react-constant-elements": "~7.24.
|
|
92
|
-
"@babel/plugin-transform-react-inline-elements": "~7.24.
|
|
93
|
-
"@babel/plugin-transform-react-jsx-source": "~7.24.
|
|
94
|
-
"@babel/plugin-transform-runtime": "~7.24.
|
|
95
|
-
"@babel/preset-env": "~7.24.
|
|
96
|
-
"@babel/preset-react": "~7.24.
|
|
97
|
-
"@babel/preset-typescript": "~7.24.
|
|
98
|
-
"@babel/runtime": "~7.24.
|
|
89
|
+
"@babel/plugin-syntax-import-assertions": "~7.24.6",
|
|
90
|
+
"@babel/plugin-transform-modules-commonjs": "~7.24.6",
|
|
91
|
+
"@babel/plugin-transform-react-constant-elements": "~7.24.6",
|
|
92
|
+
"@babel/plugin-transform-react-inline-elements": "~7.24.6",
|
|
93
|
+
"@babel/plugin-transform-react-jsx-source": "~7.24.6",
|
|
94
|
+
"@babel/plugin-transform-runtime": "~7.24.6",
|
|
95
|
+
"@babel/preset-env": "~7.24.6",
|
|
96
|
+
"@babel/preset-react": "~7.24.6",
|
|
97
|
+
"@babel/preset-typescript": "~7.24.6",
|
|
98
|
+
"@babel/runtime": "~7.24.6",
|
|
99
99
|
"@commitlint/cli": "~19.3.0",
|
|
100
100
|
"@commitlint/config-conventional": "~19.2.2",
|
|
101
101
|
"@elliemae/browserslist-config-elliemae-latest-browsers": "~1.9.0",
|
|
102
|
-
"@eslint/eslintrc": "~3.0
|
|
102
|
+
"@eslint/eslintrc": "~3.1.0",
|
|
103
103
|
"@eslint/js": "~8.57.0",
|
|
104
104
|
"@faker-js/faker": "8.4.1",
|
|
105
|
-
"@nx/workspace": "19.
|
|
105
|
+
"@nx/workspace": "19.1.1",
|
|
106
106
|
"@pmmmwh/react-refresh-webpack-plugin": "~0.5.13",
|
|
107
107
|
"@semantic-release/changelog": "~6.0.3",
|
|
108
108
|
"@semantic-release/exec": "~6.0.3",
|
|
109
109
|
"@semantic-release/git": "~10.0.1",
|
|
110
|
-
"@storybook/addon-a11y": "~8.
|
|
111
|
-
"@storybook/addon-essentials": "~8.
|
|
110
|
+
"@storybook/addon-a11y": "~8.1.5",
|
|
111
|
+
"@storybook/addon-essentials": "~8.1.5",
|
|
112
112
|
"@storybook/addon-events": "~6.2.9",
|
|
113
|
-
"@storybook/addon-interactions": "~8.
|
|
114
|
-
"@storybook/addon-links": "~8.
|
|
115
|
-
"@storybook/addon-storysource": "~8.
|
|
116
|
-
"@storybook/blocks": "~8.
|
|
117
|
-
"@storybook/builder-vite": "~8.
|
|
118
|
-
"@storybook/builder-webpack5": "~8.
|
|
113
|
+
"@storybook/addon-interactions": "~8.1.5",
|
|
114
|
+
"@storybook/addon-links": "~8.1.5",
|
|
115
|
+
"@storybook/addon-storysource": "~8.1.5",
|
|
116
|
+
"@storybook/blocks": "~8.1.5",
|
|
117
|
+
"@storybook/builder-vite": "~8.1.5",
|
|
118
|
+
"@storybook/builder-webpack5": "~8.1.5",
|
|
119
119
|
"@storybook/jest": "~0.2.3",
|
|
120
120
|
"@storybook/manager-webpack5": "~6.5.16",
|
|
121
|
-
"@storybook/react": "~8.
|
|
122
|
-
"@storybook/react-vite": "~8.
|
|
123
|
-
"@storybook/react-webpack5": "~8.
|
|
121
|
+
"@storybook/react": "~8.1.5",
|
|
122
|
+
"@storybook/react-vite": "~8.1.5",
|
|
123
|
+
"@storybook/react-webpack5": "~8.1.5",
|
|
124
124
|
"@storybook/testing-library": "~0.2.2",
|
|
125
|
-
"@storybook/theming": "~8.
|
|
125
|
+
"@storybook/theming": "~8.1.5",
|
|
126
126
|
"@stylelint/postcss-css-in-js": "~0.38.0",
|
|
127
127
|
"@svgr/webpack": "~8.1.0",
|
|
128
128
|
"@swc/cli": "~0.3.12",
|
|
129
|
-
"@swc/core": "~1.5.
|
|
129
|
+
"@swc/core": "~1.5.24",
|
|
130
130
|
"@swc/jest": "~0.2.36",
|
|
131
131
|
"@testing-library/jest-dom": "~6.4.5",
|
|
132
132
|
"@testing-library/react": "~15.0.7",
|
|
@@ -140,7 +140,7 @@
|
|
|
140
140
|
"@types/jest": "~29.5.12",
|
|
141
141
|
"@types/jest-axe": "~3.5.9",
|
|
142
142
|
"@types/moment-locales-webpack-plugin": "~1.2.6",
|
|
143
|
-
"@types/node": "~20.12.
|
|
143
|
+
"@types/node": "~20.12.13",
|
|
144
144
|
"@types/normalize-path": "~3.0.2",
|
|
145
145
|
"@types/rimraf": "~4.0.5",
|
|
146
146
|
"@types/speed-measure-webpack-plugin": "~1.3.6",
|
|
@@ -148,9 +148,9 @@
|
|
|
148
148
|
"@types/uuid": "~9.0.8",
|
|
149
149
|
"@types/testing-library__jest-dom": "~5.14.9",
|
|
150
150
|
"@types/webpack-bundle-analyzer": "~4.7.0",
|
|
151
|
-
"@typescript-eslint/eslint-plugin": "~7.
|
|
152
|
-
"@typescript-eslint/parser": "~7.
|
|
153
|
-
"@vitejs/plugin-react": "~4.
|
|
151
|
+
"@typescript-eslint/eslint-plugin": "~7.11.0",
|
|
152
|
+
"@typescript-eslint/parser": "~7.11.0",
|
|
153
|
+
"@vitejs/plugin-react": "~4.3.0",
|
|
154
154
|
"@vitest/coverage-c8": "~0.33.0",
|
|
155
155
|
"acorn": "~8.11.3",
|
|
156
156
|
"autoprefixer": "~10.4.19",
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
"copy-webpack-plugin": "~12.0.2",
|
|
176
176
|
"cors": "~2.8.5",
|
|
177
177
|
"cross-env": "~7.0.3",
|
|
178
|
-
"css-loader": "~7.1.
|
|
178
|
+
"css-loader": "~7.1.2",
|
|
179
179
|
"css-minimizer-webpack-plugin": "~7.0.0",
|
|
180
180
|
"depcheck": "~1.4.7",
|
|
181
181
|
"docdash": "~2.0.2",
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
"dotenv-webpack": "~8.1.0",
|
|
184
184
|
"duplicate-package-checker-webpack-plugin": "~3.0.0",
|
|
185
185
|
"enhanced-resolve": "5.16.1",
|
|
186
|
-
"esbuild": "~0.21.
|
|
186
|
+
"esbuild": "~0.21.4",
|
|
187
187
|
"esbuild-loader": "~4.1.0",
|
|
188
188
|
"esbuild-plugin-lodash": "~1.2.0",
|
|
189
189
|
"esbuild-plugin-svgr": "~2.1.0",
|
|
@@ -201,19 +201,19 @@
|
|
|
201
201
|
"eslint-plugin-eslint-comments": "~3.2.0",
|
|
202
202
|
"eslint-plugin-import": "~2.29.1",
|
|
203
203
|
"eslint-plugin-jest": "~28.5.0",
|
|
204
|
-
"eslint-plugin-jsdoc": "~48.2.
|
|
204
|
+
"eslint-plugin-jsdoc": "~48.2.7",
|
|
205
205
|
"eslint-plugin-jsx-a11y": "~6.8.0",
|
|
206
206
|
"eslint-plugin-mdx": "~3.1.5",
|
|
207
|
-
"eslint-plugin-n": "~17.
|
|
207
|
+
"eslint-plugin-n": "~17.7.0",
|
|
208
208
|
"eslint-plugin-prettier": "~5.1.3",
|
|
209
|
-
"eslint-plugin-promise": "~6.
|
|
210
|
-
"eslint-plugin-react": "~7.34.
|
|
209
|
+
"eslint-plugin-promise": "~6.2.0",
|
|
210
|
+
"eslint-plugin-react": "~7.34.2",
|
|
211
211
|
"eslint-plugin-react-hooks": "~4.6.2",
|
|
212
212
|
"eslint-plugin-redux-saga": "~1.3.2",
|
|
213
213
|
"eslint-plugin-storybook": "~0.8.0",
|
|
214
214
|
"eslint-plugin-testing-library": "~6.2.2",
|
|
215
|
-
"eslint-plugin-wdio": "~8.
|
|
216
|
-
"execa": "~
|
|
215
|
+
"eslint-plugin-wdio": "~8.37.0",
|
|
216
|
+
"execa": "~9.1.0",
|
|
217
217
|
"express": "~4.19.2",
|
|
218
218
|
"express-static-gzip": "~2.1.7",
|
|
219
219
|
"favicons": "~7.2.0",
|
|
@@ -221,8 +221,8 @@
|
|
|
221
221
|
"fast-glob": "~3.3.2",
|
|
222
222
|
"find-up": "~7.0.0",
|
|
223
223
|
"find-up-cli": "~6.0.0",
|
|
224
|
-
"globals": "~15.
|
|
225
|
-
"happy-dom": "~14.
|
|
224
|
+
"globals": "~15.3.0",
|
|
225
|
+
"happy-dom": "~14.12.0",
|
|
226
226
|
"helmet-csp": "~3.4.0",
|
|
227
227
|
"html-loader": "~5.0.0",
|
|
228
228
|
"html-webpack-plugin": "~5.6.0",
|
|
@@ -239,8 +239,8 @@
|
|
|
239
239
|
"jest-watch-typeahead": "~2.2.2",
|
|
240
240
|
"jscodeshift": "~0.15.2",
|
|
241
241
|
"jsdoc": "~4.0.3",
|
|
242
|
-
"lerna": "~8.1.
|
|
243
|
-
"lint-staged": "~15.2.
|
|
242
|
+
"lerna": "~8.1.3",
|
|
243
|
+
"lint-staged": "~15.2.5",
|
|
244
244
|
"mini-css-extract-plugin": "~2.9.0",
|
|
245
245
|
"minimist": "~1.2.8",
|
|
246
246
|
"moment": "~2.30.1",
|
|
@@ -249,25 +249,25 @@
|
|
|
249
249
|
"npm-run-all": "~4.1.5",
|
|
250
250
|
"node-gyp": "~10.1.0",
|
|
251
251
|
"node-plop": "~0.32.0",
|
|
252
|
-
"nodemon": "~3.1.
|
|
252
|
+
"nodemon": "~3.1.2",
|
|
253
253
|
"normalize-path": "~3.0.0",
|
|
254
254
|
"npm-check-updates": "16.14.20",
|
|
255
|
-
"nx": "~19.
|
|
256
|
-
"pino": "~9.
|
|
255
|
+
"nx": "~19.1.1",
|
|
256
|
+
"pino": "~9.1.0",
|
|
257
257
|
"pino-http": "~10.1.0",
|
|
258
|
-
"pino-pretty": "~11.
|
|
258
|
+
"pino-pretty": "~11.1.0",
|
|
259
259
|
"plop": "~4.0.1",
|
|
260
260
|
"postcss": "~8.4.38",
|
|
261
261
|
"postcss-html": "~1.7.0",
|
|
262
262
|
"postcss-jsx": "~0.36.4",
|
|
263
263
|
"postcss-loader": "~8.1.1",
|
|
264
264
|
"postcss-markdown": "~1.2.0",
|
|
265
|
-
"postcss-preset-env": "~9.5.
|
|
265
|
+
"postcss-preset-env": "~9.5.14",
|
|
266
266
|
"postcss-styled-syntax": "0.6.4",
|
|
267
267
|
"postcss-syntax": "~0.36.2",
|
|
268
268
|
"prettier": "~3.2.5",
|
|
269
|
-
"prisma": "~5.
|
|
270
|
-
"pug": "~3.0.
|
|
269
|
+
"prisma": "~5.14.0",
|
|
270
|
+
"pug": "~3.0.3",
|
|
271
271
|
"pug-loader": "~2.4.0",
|
|
272
272
|
"raf": "~3.4.1",
|
|
273
273
|
"react-docgen": "~7.0.3",
|
|
@@ -275,30 +275,30 @@
|
|
|
275
275
|
"react-test-renderer": "~18.3.1",
|
|
276
276
|
"resize-observer-polyfill": "~1.5.1",
|
|
277
277
|
"resolve-typescript-plugin": "~2.0.1",
|
|
278
|
-
"rimraf": "5.0.
|
|
279
|
-
"semantic-release": "~23.
|
|
278
|
+
"rimraf": "5.0.7",
|
|
279
|
+
"semantic-release": "~23.1.1",
|
|
280
280
|
"slackify-markdown": "~4.4.0",
|
|
281
281
|
"speed-measure-webpack-plugin": "~1.5.0",
|
|
282
|
-
"storybook": "~8.
|
|
282
|
+
"storybook": "~8.1.5",
|
|
283
283
|
"storybook-addon-turbo-build": "~2.0.1",
|
|
284
284
|
"storybook-react-router": "~1.0.8",
|
|
285
285
|
"style-loader": "~4.0.0",
|
|
286
|
-
"stylelint": "~16.
|
|
286
|
+
"stylelint": "~16.6.1",
|
|
287
287
|
"stylelint-config-standard": "~36.0.0",
|
|
288
288
|
"supertest": "~7.0.0",
|
|
289
289
|
"swc-loader": "~0.2.6",
|
|
290
290
|
"tsconfig-paths-webpack-plugin": "~4.1.0",
|
|
291
291
|
"ts-node": "~10.9.2",
|
|
292
|
-
"tsc-alias": "~1.8.
|
|
293
|
-
"tsx": "~4.
|
|
292
|
+
"tsc-alias": "~1.8.10",
|
|
293
|
+
"tsx": "~4.11.0",
|
|
294
294
|
"typedoc": "~0.25.13",
|
|
295
295
|
"typescript": "~5.4.5",
|
|
296
|
-
"typescript-eslint": "~7.
|
|
297
|
-
"undici": "~6.
|
|
296
|
+
"typescript-eslint": "~7.11.0",
|
|
297
|
+
"undici": "~6.18.2",
|
|
298
298
|
"update-notifier": "~7.0.0",
|
|
299
299
|
"url-loader": "~4.1.1",
|
|
300
300
|
"uuid": "~9.0.1",
|
|
301
|
-
"vite": "~5.2.
|
|
301
|
+
"vite": "~5.2.12",
|
|
302
302
|
"vitest": "~1.6.0",
|
|
303
303
|
"vite-tsconfig-paths": "~4.3.2",
|
|
304
304
|
"webpack": "~5.91.0",
|
|
@@ -313,7 +313,7 @@
|
|
|
313
313
|
"yargs": "~17.7.2"
|
|
314
314
|
},
|
|
315
315
|
"devDependencies": {
|
|
316
|
-
"@elliemae/pui-doc-gen": "~2.0
|
|
316
|
+
"@elliemae/pui-doc-gen": "~2.1.0",
|
|
317
317
|
"react": "~18.3.1",
|
|
318
318
|
"react-dom": "~18.3.1",
|
|
319
319
|
"redux": "~5.0.1",
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
const { isApp } = require('./utils.cjs');
|
|
2
|
-
|
|
3
|
-
const nodeEnvPreset = {
|
|
4
|
-
modules: process.env.ES_MODULES === 'false' ? 'commonjs' : false,
|
|
5
|
-
targets: {
|
|
6
|
-
node: 'current',
|
|
7
|
-
},
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const webEnvPreset = {
|
|
11
|
-
modules: process.env.ES_MODULES === 'false' ? 'commonjs' : false,
|
|
12
|
-
useBuiltIns: 'usage',
|
|
13
|
-
corejs: { version: '3.36', proposals: true },
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const presetEnvOptions =
|
|
17
|
-
process.env.TARGET_ENV === 'node' ? nodeEnvPreset : webEnvPreset;
|
|
18
|
-
|
|
19
|
-
const config = {
|
|
20
|
-
ignore: [/\/core-js/],
|
|
21
|
-
sourceType: 'unambiguous',
|
|
22
|
-
presets: [
|
|
23
|
-
['@babel/preset-env', presetEnvOptions],
|
|
24
|
-
['@babel/preset-react', { runtime: 'automatic' }],
|
|
25
|
-
'@babel/preset-typescript',
|
|
26
|
-
],
|
|
27
|
-
plugins: [
|
|
28
|
-
[
|
|
29
|
-
'babel-plugin-module-resolver',
|
|
30
|
-
{
|
|
31
|
-
alias: {
|
|
32
|
-
'@': isApp() ? './app' : './lib',
|
|
33
|
-
},
|
|
34
|
-
stripExtensions: [],
|
|
35
|
-
},
|
|
36
|
-
],
|
|
37
|
-
['babel-plugin-styled-components', { displayName: true }],
|
|
38
|
-
['@babel/plugin-transform-runtime', { regenerator: true }],
|
|
39
|
-
'@babel/plugin-proposal-class-properties',
|
|
40
|
-
'@babel/plugin-syntax-dynamic-import',
|
|
41
|
-
'@babel/plugin-proposal-export-default-from',
|
|
42
|
-
'lodash',
|
|
43
|
-
'date-fns',
|
|
44
|
-
],
|
|
45
|
-
env: {
|
|
46
|
-
development: {
|
|
47
|
-
plugins: [
|
|
48
|
-
['babel-plugin-styled-components', { displayName: true }],
|
|
49
|
-
'@babel/plugin-transform-react-jsx-source',
|
|
50
|
-
],
|
|
51
|
-
},
|
|
52
|
-
production: {
|
|
53
|
-
plugins: [
|
|
54
|
-
['babel-plugin-styled-components', { displayName: false, pure: true }],
|
|
55
|
-
['transform-remove-console', { exclude: ['error', 'warn'] }],
|
|
56
|
-
'transform-react-remove-prop-types',
|
|
57
|
-
'@babel/plugin-transform-react-inline-elements',
|
|
58
|
-
'@babel/plugin-transform-react-constant-elements',
|
|
59
|
-
],
|
|
60
|
-
},
|
|
61
|
-
test: {
|
|
62
|
-
plugins: [
|
|
63
|
-
['babel-plugin-styled-components', { displayName: true }],
|
|
64
|
-
'@babel/plugin-transform-modules-commonjs',
|
|
65
|
-
'dynamic-import-node',
|
|
66
|
-
[
|
|
67
|
-
'babel-plugin-transform-strip-block',
|
|
68
|
-
{
|
|
69
|
-
requireDirective: true,
|
|
70
|
-
identifiers: [{ start: 'block:start', end: 'block:end' }],
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
'babel-plugin-import-remove-resource-query',
|
|
74
|
-
],
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
if (
|
|
80
|
-
process.env.STORYBOOK_BUILD !== 'true' &&
|
|
81
|
-
process.env.TARGET_ENV !== 'node'
|
|
82
|
-
) {
|
|
83
|
-
config.env?.development?.plugins?.push?.('react-refresh/babel');
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// ToDo: Once ECC team migrates from webpack 3 to webpack 5 remove this strip-block plugin from commonjs output. without this they are receiving error when import.meta is used in app sdk
|
|
87
|
-
if (process.env.ES_MODULES === 'false') {
|
|
88
|
-
config.plugins.push([
|
|
89
|
-
'babel-plugin-transform-strip-block',
|
|
90
|
-
{
|
|
91
|
-
requireDirective: true,
|
|
92
|
-
identifiers: [{ start: 'block:start', end: 'block:end' }],
|
|
93
|
-
},
|
|
94
|
-
]);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
exports.babelConfig = config;
|
package/dist/cjs/dummy.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
exports.commitlintConfig = { extends: ['@commitlint/config-conventional'] };
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
/* eslint-disable max-lines */
|
|
2
|
-
const { prettierConfig } = require("../prettier.config.cjs");
|
|
3
|
-
// const webpackConfig = require('../../webpack/webpack.prod.babel');
|
|
4
|
-
|
|
5
|
-
exports.baseExtends = [
|
|
6
|
-
"plugin:eslint-comments/recommended",
|
|
7
|
-
"plugin:import/recommended",
|
|
8
|
-
"plugin:prettier/recommended",
|
|
9
|
-
"plugin:jest/recommended",
|
|
10
|
-
"plugin:jsdoc/recommended",
|
|
11
|
-
"plugin:wdio/recommended",
|
|
12
|
-
"plugin:testing-library/dom",
|
|
13
|
-
"plugin:storybook/recommended",
|
|
14
|
-
];
|
|
15
|
-
|
|
16
|
-
const basePlugins = ["testing-library", "jest", "jsdoc", "wdio", "import"];
|
|
17
|
-
exports.basePlugins = basePlugins;
|
|
18
|
-
|
|
19
|
-
exports.baseOverrides = [
|
|
20
|
-
{
|
|
21
|
-
files: ["*.func.spec.js", "*.visual.spec.js"],
|
|
22
|
-
rules: {
|
|
23
|
-
"jest/valid-expect": "off",
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
];
|
|
27
|
-
|
|
28
|
-
const baseRules = {
|
|
29
|
-
"prettier/prettier": ["error", prettierConfig],
|
|
30
|
-
"arrow-body-style": [2, "as-needed"],
|
|
31
|
-
"class-methods-use-this": 0,
|
|
32
|
-
"import/imports-first": 0,
|
|
33
|
-
"import/newline-after-import": 0,
|
|
34
|
-
"import/no-dynamic-require": 0,
|
|
35
|
-
"import/no-extraneous-dependencies": 0,
|
|
36
|
-
"import/no-named-as-default": 0,
|
|
37
|
-
"import/no-unresolved": [
|
|
38
|
-
2,
|
|
39
|
-
{ caseSensitive: true, caseSensitiveStrict: true },
|
|
40
|
-
], // Tip: https://github.com/import-js/eslint-plugin-import/issues/1868
|
|
41
|
-
"import/no-webpack-loader-syntax": 0,
|
|
42
|
-
"import/prefer-default-export": 0,
|
|
43
|
-
"import/extensions": [
|
|
44
|
-
2,
|
|
45
|
-
"never",
|
|
46
|
-
{
|
|
47
|
-
json: "ignorePackages",
|
|
48
|
-
js: "ignorePackages",
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
indent: [
|
|
52
|
-
2,
|
|
53
|
-
2,
|
|
54
|
-
{
|
|
55
|
-
SwitchCase: 1,
|
|
56
|
-
},
|
|
57
|
-
],
|
|
58
|
-
"max-lines": ["error", { max: 120, skipComments: true }],
|
|
59
|
-
complexity: ["error", { max: 10 }],
|
|
60
|
-
"max-depth": ["error", { max: 4 }],
|
|
61
|
-
"max-lines-per-function": 0,
|
|
62
|
-
"max-nested-callbacks": ["error", { max: 3 }],
|
|
63
|
-
"max-params": ["error", { max: 3 }],
|
|
64
|
-
"max-statements": ["error", { max: 20 }],
|
|
65
|
-
"max-len": 0,
|
|
66
|
-
"newline-per-chained-call": 0,
|
|
67
|
-
"no-confusing-arrow": 0,
|
|
68
|
-
"no-console": 1,
|
|
69
|
-
"no-param-reassign": ["error", { props: false }],
|
|
70
|
-
"no-unused-vars": 2,
|
|
71
|
-
"no-use-before-define": 0,
|
|
72
|
-
"prefer-template": 2,
|
|
73
|
-
"require-yield": 0,
|
|
74
|
-
"jsdoc/require-jsdoc": 0,
|
|
75
|
-
"eslint-comments/disable-enable-pair": 0,
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
exports.baseRules = baseRules;
|
|
79
|
-
|
|
80
|
-
const reactRules = {
|
|
81
|
-
"jsx-a11y/aria-props": 2,
|
|
82
|
-
"jsx-a11y/heading-has-content": 0,
|
|
83
|
-
"jsx-a11y/label-has-associated-control": [
|
|
84
|
-
2,
|
|
85
|
-
{
|
|
86
|
-
// NOTE: If this error triggers, either disable it or add
|
|
87
|
-
// your custom components, labels and attributes via these options
|
|
88
|
-
// See https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/label-has-associated-control.md
|
|
89
|
-
controlComponents: ["Input"],
|
|
90
|
-
},
|
|
91
|
-
],
|
|
92
|
-
"jsx-a11y/label-has-for": 0,
|
|
93
|
-
"jsx-a11y/mouse-events-have-key-events": 2,
|
|
94
|
-
"jsx-a11y/role-has-required-aria-props": 2,
|
|
95
|
-
"jsx-a11y/role-supports-aria-props": 2,
|
|
96
|
-
"react/destructuring-assignment": 0,
|
|
97
|
-
"react-hooks/rules-of-hooks": "error",
|
|
98
|
-
"react/jsx-closing-tag-location": 0,
|
|
99
|
-
"react/forbid-prop-types": 0,
|
|
100
|
-
"react/jsx-first-prop-new-line": [2, "multiline"],
|
|
101
|
-
"react/jsx-no-target-blank": 0,
|
|
102
|
-
"react/jsx-props-no-spreading": 0,
|
|
103
|
-
"react/jsx-uses-vars": 2,
|
|
104
|
-
"react/require-default-props": 0,
|
|
105
|
-
"react/require-extension": 0,
|
|
106
|
-
"react/self-closing-comp": 0,
|
|
107
|
-
"react/sort-comp": 0,
|
|
108
|
-
"react/react-in-jsx-scope": 0,
|
|
109
|
-
"react/jsx-filename-extension": [
|
|
110
|
-
1,
|
|
111
|
-
{ extensions: [".js", ".jsx", ".tsx", ".mdx"] },
|
|
112
|
-
],
|
|
113
|
-
"react/function-component-definition": [
|
|
114
|
-
2,
|
|
115
|
-
{ namedComponents: "arrow-function" },
|
|
116
|
-
],
|
|
117
|
-
"redux-saga/no-yield-in-race": 2,
|
|
118
|
-
"redux-saga/yield-effects": 2,
|
|
119
|
-
};
|
|
120
|
-
exports.reactRules = reactRules;
|
|
121
|
-
|
|
122
|
-
exports.baseConfig = {
|
|
123
|
-
parser: "@babel/eslint-parser",
|
|
124
|
-
plugins: basePlugins,
|
|
125
|
-
env: {
|
|
126
|
-
jest: true,
|
|
127
|
-
browser: true,
|
|
128
|
-
node: true,
|
|
129
|
-
es2021: true,
|
|
130
|
-
},
|
|
131
|
-
parserOptions: {
|
|
132
|
-
sourceType: "module",
|
|
133
|
-
ecmaFeatures: {
|
|
134
|
-
jsx: true,
|
|
135
|
-
},
|
|
136
|
-
babelOptions: {
|
|
137
|
-
plugins: ["@babel/plugin-syntax-import-assertions"],
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
|
-
settings: {
|
|
141
|
-
react: {
|
|
142
|
-
version: "detect",
|
|
143
|
-
},
|
|
144
|
-
jest: {
|
|
145
|
-
version: 28,
|
|
146
|
-
},
|
|
147
|
-
"import/resolver": {
|
|
148
|
-
node: {
|
|
149
|
-
extensions: [".js", ".jsx", ".ts", ".tsx"],
|
|
150
|
-
},
|
|
151
|
-
},
|
|
152
|
-
},
|
|
153
|
-
ignorePatterns: [
|
|
154
|
-
"/build/**/*",
|
|
155
|
-
"/node_modules/**/*",
|
|
156
|
-
"/dist/**/*",
|
|
157
|
-
"/reports/**/*",
|
|
158
|
-
"/coverage/**/*",
|
|
159
|
-
"/demo/**/*",
|
|
160
|
-
"/docs/**/*",
|
|
161
|
-
"/temp/**/*",
|
|
162
|
-
"**/vendor/*.js",
|
|
163
|
-
],
|
|
164
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const {
|
|
2
|
-
baseExtends,
|
|
3
|
-
baseRules,
|
|
4
|
-
baseOverrides,
|
|
5
|
-
baseConfig,
|
|
6
|
-
} = require('./common.cjs');
|
|
7
|
-
const { tsConfig } = require('./typescript/non-react.cjs');
|
|
8
|
-
|
|
9
|
-
exports.esConfig = {
|
|
10
|
-
...baseConfig,
|
|
11
|
-
extends: ['airbnb-base'].concat(baseExtends),
|
|
12
|
-
rules: baseRules,
|
|
13
|
-
overrides: baseOverrides.concat([tsConfig]),
|
|
14
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
const {
|
|
2
|
-
baseExtends,
|
|
3
|
-
baseRules,
|
|
4
|
-
baseOverrides,
|
|
5
|
-
baseConfig,
|
|
6
|
-
reactRules,
|
|
7
|
-
} = require('./common.cjs');
|
|
8
|
-
const { tsReactConfig } = require('./typescript/react.cjs');
|
|
9
|
-
|
|
10
|
-
exports.esReactConfig = {
|
|
11
|
-
...baseConfig,
|
|
12
|
-
extends: ['airbnb', 'airbnb/hooks', 'plugin:redux-saga/recommended'].concat(
|
|
13
|
-
baseExtends,
|
|
14
|
-
),
|
|
15
|
-
rules: {
|
|
16
|
-
...baseRules,
|
|
17
|
-
...reactRules,
|
|
18
|
-
},
|
|
19
|
-
overrides: baseOverrides.concat([
|
|
20
|
-
tsReactConfig,
|
|
21
|
-
{
|
|
22
|
-
files: '*.mdx',
|
|
23
|
-
extends: 'plugin:mdx/recommended',
|
|
24
|
-
},
|
|
25
|
-
]),
|
|
26
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
const { baseExtends, basePlugins } = require('../common.cjs');
|
|
2
|
-
|
|
3
|
-
exports.tsBaseExtends = [
|
|
4
|
-
'plugin:import/typescript',
|
|
5
|
-
'plugin:@typescript-eslint/recommended-type-checked',
|
|
6
|
-
'plugin:@typescript-eslint/stylistic-type-checked',
|
|
7
|
-
].concat(baseExtends);
|
|
8
|
-
|
|
9
|
-
exports.tsBaseRules = {
|
|
10
|
-
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
11
|
-
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
12
|
-
'@typescript-eslint/no-use-before-define': [
|
|
13
|
-
'error',
|
|
14
|
-
{ functions: false, classes: true, variables: true, typedefs: true },
|
|
15
|
-
],
|
|
16
|
-
'max-lines': ['error', { max: 200, skipComments: true }],
|
|
17
|
-
'@typescript-eslint/unbound-method': [
|
|
18
|
-
'error',
|
|
19
|
-
{
|
|
20
|
-
ignoreStatic: true,
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
'@typescript-eslint/no-floating-promises': [
|
|
24
|
-
'error',
|
|
25
|
-
{
|
|
26
|
-
ignoreIIFE: true,
|
|
27
|
-
},
|
|
28
|
-
],
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
exports.tsBaseConfig = {
|
|
32
|
-
files: ['*.ts', '*.tsx'],
|
|
33
|
-
parser: '@typescript-eslint/parser',
|
|
34
|
-
plugins: ['@typescript-eslint'].concat(basePlugins),
|
|
35
|
-
parserOptions: {
|
|
36
|
-
tsconfigRootDir: process.cwd(),
|
|
37
|
-
project: true,
|
|
38
|
-
},
|
|
39
|
-
settings: {
|
|
40
|
-
'import/resolver': {
|
|
41
|
-
typescript: {
|
|
42
|
-
alwaysTryTypes: true,
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
'import/parsers': {
|
|
46
|
-
'@typescript-eslint/parser': ['.ts', '.tsx'],
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/* eslint-disable max-lines */
|
|
2
|
-
const { baseRules } = require('../common.cjs');
|
|
3
|
-
const { tsBaseExtends, tsBaseRules, tsBaseConfig } = require('./common.cjs');
|
|
4
|
-
|
|
5
|
-
exports.tsConfig = {
|
|
6
|
-
...tsBaseConfig,
|
|
7
|
-
extends: ['airbnb-base', 'airbnb-typescript/base'].concat(tsBaseExtends),
|
|
8
|
-
rules: {
|
|
9
|
-
...baseRules,
|
|
10
|
-
...tsBaseRules,
|
|
11
|
-
},
|
|
12
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/* eslint-disable max-lines */
|
|
2
|
-
const { baseRules, reactRules } = require('../common.cjs');
|
|
3
|
-
const { tsBaseExtends, tsBaseRules, tsBaseConfig } = require('./common.cjs');
|
|
4
|
-
|
|
5
|
-
exports.tsReactConfig = {
|
|
6
|
-
...tsBaseConfig,
|
|
7
|
-
extends: [
|
|
8
|
-
'airbnb',
|
|
9
|
-
'airbnb/hooks',
|
|
10
|
-
'plugin:redux-saga/recommended',
|
|
11
|
-
'airbnb-typescript',
|
|
12
|
-
].concat(tsBaseExtends),
|
|
13
|
-
rules: {
|
|
14
|
-
...baseRules,
|
|
15
|
-
...tsBaseRules,
|
|
16
|
-
...reactRules,
|
|
17
|
-
'react/prop-types': 0,
|
|
18
|
-
},
|
|
19
|
-
};
|