@elliemae/pui-cli 9.0.0-next.13 → 9.0.0-next.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/dist/cjs/commands/lint.js +26 -7
  2. package/dist/cjs/commands/utils.js +3 -1
  3. package/dist/cjs/lint-config/eslint/common.cjs +3 -2
  4. package/dist/cjs/lint-config/eslint/typescript/common.cjs +3 -3
  5. package/dist/cjs/lint-config/stylelint.config.cjs +14 -13
  6. package/dist/cjs/monorepo/delete-merged-tags.js +1 -1
  7. package/dist/cjs/monorepo/set-registry-version.js +1 -1
  8. package/dist/cjs/monorepo/set-workspace-version.js +1 -1
  9. package/dist/cjs/server/csp.js +1 -1
  10. package/dist/cjs/server/utils.js +2 -2
  11. package/dist/cjs/testing/jest.config.cjs +2 -0
  12. package/dist/cjs/testing/setup-tests.js +22 -1
  13. package/dist/cjs/transpile/esbuild.js +1 -1
  14. package/dist/cjs/update-notifier.js +1 -1
  15. package/dist/cjs/utils.js +1 -1
  16. package/dist/cjs/webpack/helpers.js +6 -6
  17. package/dist/cjs/webpack/webpack.base.babel.js +4 -4
  18. package/dist/cjs/webpack/webpack.dev.babel.js +1 -1
  19. package/dist/cjs/webpack/webpack.lib.base.babel.js +4 -4
  20. package/dist/cjs/webpack/webpack.lib.dev.babel.js +1 -1
  21. package/dist/cjs/webpack/webpack.storybook.js +2 -2
  22. package/dist/esm/commands/lint.js +27 -7
  23. package/dist/esm/commands/utils.js +3 -1
  24. package/dist/esm/lint-config/eslint/common.cjs +3 -2
  25. package/dist/esm/lint-config/eslint/typescript/common.cjs +3 -3
  26. package/dist/esm/lint-config/stylelint.config.cjs +14 -13
  27. package/dist/esm/monorepo/delete-merged-tags.js +1 -1
  28. package/dist/esm/monorepo/set-registry-version.js +1 -1
  29. package/dist/esm/monorepo/set-workspace-version.js +1 -1
  30. package/dist/esm/server/csp.js +1 -1
  31. package/dist/esm/server/utils.js +2 -2
  32. package/dist/esm/testing/jest.config.cjs +2 -0
  33. package/dist/esm/testing/setup-tests.js +22 -1
  34. package/dist/esm/transpile/esbuild.js +1 -1
  35. package/dist/esm/update-notifier.js +1 -1
  36. package/dist/esm/utils.js +1 -1
  37. package/dist/esm/webpack/helpers.js +6 -6
  38. package/dist/esm/webpack/webpack.base.babel.js +4 -4
  39. package/dist/esm/webpack/webpack.dev.babel.js +1 -1
  40. package/dist/esm/webpack/webpack.lib.base.babel.js +4 -4
  41. package/dist/esm/webpack/webpack.lib.dev.babel.js +1 -1
  42. package/dist/esm/webpack/webpack.storybook.js +2 -2
  43. package/dist/types/babel.config.d.cts +7 -7
  44. package/dist/types/commands/build.d.ts +2 -2
  45. package/dist/types/commands/codemod.d.ts +2 -2
  46. package/dist/types/commands/lint.d.ts +3 -2
  47. package/dist/types/commands/pack.d.ts +2 -2
  48. package/dist/types/commands/start.d.ts +2 -2
  49. package/dist/types/commands/storybook.d.ts +2 -2
  50. package/dist/types/commands/test.d.ts +2 -2
  51. package/dist/types/commands/tscheck.d.ts +2 -2
  52. package/dist/types/commands/utils.d.ts +1 -0
  53. package/dist/types/commands/version.d.ts +2 -2
  54. package/dist/types/commands/vitest.d.ts +2 -2
  55. package/dist/types/lint-config/commitlint.config.d.cts +1 -1
  56. package/dist/types/lint-config/eslint/common.d.cts +18 -12
  57. package/dist/types/lint-config/eslint/non-react.d.cts +8 -1
  58. package/dist/types/lint-config/eslint/react.d.cts +8 -1
  59. package/dist/types/lint-config/eslint/typescript/common.d.cts +6 -6
  60. package/dist/types/lint-config/eslint/typescript/non-react.d.cts +9 -2
  61. package/dist/types/lint-config/eslint/typescript/react.d.cts +9 -2
  62. package/dist/types/lint-config/lint-staged.config.d.ts +3 -3
  63. package/dist/types/lint-config/prettier.config.d.cts +6 -6
  64. package/dist/types/lint-config/stylelint.config.d.cts +6 -6
  65. package/dist/types/release.config.d.cts +2 -2
  66. package/dist/types/server/csp.d.ts +2 -2
  67. package/dist/types/testing/jest.config.d.cts +24 -22
  68. package/dist/types/testing/jest.node.config.d.cts +2 -0
  69. package/dist/types/testing/mocks/axios.d.ts +7 -7
  70. package/dist/types/testing/mocks/pui-diagnostics.d.ts +13 -13
  71. package/dist/types/transpile/esbuild.d.ts +3 -3
  72. package/dist/types/typedoc.d.cts +3 -3
  73. package/dist/types/webpack/helpers.d.ts +1 -1
  74. package/package.json +108 -108
@@ -2,7 +2,7 @@ import { readFile, writeFile } from "node:fs/promises";
2
2
  import fg from "fast-glob";
3
3
  import normalizePath from "normalize-path";
4
4
  import { findMonoRepoRoot } from "./utils.js";
5
- const monorepoRoot = normalizePath(findMonoRepoRoot() || "");
5
+ const monorepoRoot = normalizePath(findMonoRepoRoot() ?? "");
6
6
  const setWorkspaceVersion = async () => {
7
7
  const files = await fg([
8
8
  `${monorepoRoot}/libs/*/package.json`,
@@ -1,8 +1,8 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
+ import crypto from "crypto";
3
4
  import express from "express";
4
5
  import cspPolicy from "helmet-csp";
5
- import crypto from "crypto";
6
6
  const CSP_REPORT_URI = "/diagnostics/v1/csp";
7
7
  const sources = [
8
8
  "'self'",
@@ -2,10 +2,10 @@ import minimist from "minimist";
2
2
  const argv = minimist(process.argv.slice(2));
3
3
  const getCWD = () => process.cwd();
4
4
  const port = parseInt(
5
- argv.port || process.env.port || process.env.PORT || "3000",
5
+ argv.port ?? process.env.port ?? process.env.PORT ?? "3000",
6
6
  10
7
7
  );
8
- const host = argv.host || process.env.HOST || "localhost";
8
+ const host = argv.host ?? process.env.HOST ?? "localhost";
9
9
  export {
10
10
  getCWD,
11
11
  host,
@@ -57,6 +57,8 @@ const jestConfig = {
57
57
  coverageReporters: ['lcov', 'html', 'text-summary'],
58
58
  moduleDirectories: ['node_modules', 'app', 'lib'],
59
59
  moduleNameMapper: {
60
+ d3: '<rootDir>/node_modules/d3/dist/d3.min.js',
61
+ '^d3-(.*)$': '<rootDir>/node_modules/d3-$1/dist/d3-$1.min.js',
60
62
  '.*\\webpack-hmr(.[t|j]s)?$': getMockFilePath('webpack-hmr.js'),
61
63
  '.*\\.(css|scss)$': getMockFilePath('cssModule.js'),
62
64
  '.*\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|ico)$':
@@ -1,4 +1,3 @@
1
- import "core-js/stable";
2
1
  import "regenerator-runtime/runtime";
3
2
  import "@testing-library/jest-dom/extend-expect";
4
3
  import jestAxe from "jest-axe";
@@ -49,3 +48,25 @@ window.emui = {
49
48
  logger: logger(),
50
49
  _BASE_PATH: new URL(document.baseURI).pathname
51
50
  };
51
+ let showCorejsWarn = false;
52
+ afterAll(() => {
53
+ if (showCorejsWarn) {
54
+ console.warn(
55
+ `IMPORTANT: Try importing core-js/stable in your failed test files and retrying.
56
+ Some tests might have failed because of it`
57
+ );
58
+ }
59
+ });
60
+ const originalTest = global.test;
61
+ global.it = (name, fn, timeout = void 0) => {
62
+ const fnWrapper = async () => {
63
+ try {
64
+ await fn();
65
+ } catch (error) {
66
+ showCorejsWarn = true;
67
+ throw error;
68
+ }
69
+ };
70
+ originalTest(name, fnWrapper, timeout);
71
+ };
72
+ global.it.skip = originalTest.skip;
@@ -1,8 +1,8 @@
1
1
  import path from "node:path";
2
2
  import { fileURLToPath } from "node:url";
3
+ import { writeFile, copyFile, readFile, mkdir } from "node:fs/promises";
3
4
  import fg from "fast-glob";
4
5
  import { build } from "esbuild";
5
- import { writeFile, copyFile, readFile, mkdir } from "node:fs/promises";
6
6
  import browserslistToEsbuild from "browserslist-to-esbuild";
7
7
  import lodashTransformer from "esbuild-plugin-lodash";
8
8
  const __dirname = path.dirname(fileURLToPath(import.meta.url));
@@ -1,6 +1,6 @@
1
- import updateNotifier from "update-notifier";
2
1
  import path from "node:path";
3
2
  import fs from "node:fs/promises";
3
+ import updateNotifier from "update-notifier";
4
4
  const notifyUpdates = async () => {
5
5
  const pkgFile = await fs.readFile(path.join(process.cwd(), "./package.json"));
6
6
  const pkg = JSON.parse(pkgFile);
package/dist/esm/utils.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import fs from "node:fs";
2
2
  import path from "node:path";
3
- const basePath = (process.env.BASE_PATH || "/").replace(/\/?$/, "/");
3
+ const basePath = (process.env.BASE_PATH ?? "/").replace(/\/?$/, "/");
4
4
  const isApp = () => fs.existsSync(path.join(process.cwd(), "app"));
5
5
  const getAppConfig = () => {
6
6
  const appConfigPath = path.join(
@@ -1,8 +1,8 @@
1
1
  import path from "node:path";
2
2
  import fs from "node:fs";
3
+ import zlib from "zlib";
3
4
  import _ from "lodash";
4
5
  import CompressionPlugin from "compression-webpack-plugin";
5
- import zlib from "zlib";
6
6
  import { findMonoRepoRoot } from "../monorepo/utils.js";
7
7
  import { basePath, getAppConfig } from "../utils.js";
8
8
  let pathSep = path.sep;
@@ -16,8 +16,8 @@ const excludeNodeModulesExcept = (modules) => {
16
16
  const moduleRegExps = getNodeModulesRegEx(modules);
17
17
  return function(modulePath) {
18
18
  if (/node_modules/.test(modulePath)) {
19
- for (let i = 0; i < moduleRegExps.length; i += 1)
20
- if (moduleRegExps[i].test(modulePath))
19
+ for (const moduleRegExp of moduleRegExps)
20
+ if (moduleRegExp.test(modulePath))
21
21
  return false;
22
22
  return true;
23
23
  }
@@ -32,7 +32,7 @@ const getLibraryName = () => {
32
32
  const modifiedLibName = `emui-${libraryName.replace("@elliemae/", "").replace("pui-", "")}`;
33
33
  return _.camelCase(modifiedLibName);
34
34
  };
35
- const getLibraryVariableName = () => (process.env.LIBRARY_VARIABLE_NAME || getLibraryName()).split(".");
35
+ const getLibraryVariableName = () => (process.env.LIBRARY_VARIABLE_NAME ?? getLibraryName()).split(".");
36
36
  const mapToFolder = (dependencies, folder) => dependencies.reduce(
37
37
  (acc, dependency) => ({
38
38
  [dependency]: path.resolve(`${folder}/${dependency.replace("$", "")}`),
@@ -41,7 +41,7 @@ const mapToFolder = (dependencies, folder) => dependencies.reduce(
41
41
  {}
42
42
  );
43
43
  const getAlias = () => {
44
- const monorepoRoot = findMonoRepoRoot(process.cwd()) || "";
44
+ const monorepoRoot = findMonoRepoRoot(process.cwd()) ?? "";
45
45
  return mapToFolder(
46
46
  [
47
47
  "@babel/runtime",
@@ -125,7 +125,7 @@ const getAppVersion = () => {
125
125
  if (!process.env.APP_VERSION)
126
126
  return LATEST_VERSION;
127
127
  const match = process.env.APP_VERSION.match(/^v?(\d+\.\d+)\..*$/);
128
- return match && match[1] || LATEST_VERSION;
128
+ return match?.[1] ?? LATEST_VERSION;
129
129
  };
130
130
  const getPaths = (latestVersion = true) => {
131
131
  const version = latestVersion ? LATEST_VERSION : getAppVersion();
@@ -257,7 +257,7 @@ const baseConfig = (options) => ({
257
257
  mainFields: ["browser", "module", "main"],
258
258
  alias: {
259
259
  ...getAlias(),
260
- ...(options.resolve || {}).alias || {}
260
+ ...options.resolve?.alias ?? {}
261
261
  }
262
262
  },
263
263
  externalsPresets: {
@@ -287,9 +287,9 @@ const baseConfig = (options) => ({
287
287
  "styled-system": "emuiAppReactDependencies.styledSystem"
288
288
  // "@xstyled/styled-components": "emuiAppReactDependencies.xstyled",
289
289
  },
290
- devtool: options.devtool || "eval-source-map",
291
- performance: options.performance || {},
292
- devServer: options.devServer || {}
290
+ devtool: options.devtool ?? "eval-source-map",
291
+ performance: options.performance ?? {},
292
+ devServer: options.devServer ?? {}
293
293
  });
294
294
  export {
295
295
  baseConfig
@@ -114,7 +114,7 @@ const devConfig = {
114
114
  },
115
115
  hot: true,
116
116
  open: [basePath],
117
- port: process.env.PORT || "auto",
117
+ port: process.env.PORT ?? "auto",
118
118
  setupMiddlewares: (middlewares, devServer) => {
119
119
  if (devServer.app) {
120
120
  setupDefaultMiddlewares(devServer.app);
@@ -185,7 +185,7 @@ const baseConfig = (options) => ({
185
185
  mainFields: ["browser", "module", "main"],
186
186
  alias: {
187
187
  ...getAlias(),
188
- ...(options.resolve || {}).alias || {}
188
+ ...options.resolve?.alias ?? {}
189
189
  },
190
190
  plugins: [new ResolveTypeScriptPlugin({})]
191
191
  },
@@ -194,9 +194,9 @@ const baseConfig = (options) => ({
194
194
  "@elliemae/pui-app-loader": "emuiAppLoader",
195
195
  "@elliemae/pui-diagnostics": "emuiDiagnostics"
196
196
  },
197
- devtool: options.devtool || "eval-source-map",
198
- performance: options.performance || {},
199
- devServer: options.devServer || {}
197
+ devtool: options.devtool ?? "eval-source-map",
198
+ performance: options.performance ?? {},
199
+ devServer: options.devServer ?? {}
200
200
  });
201
201
  export {
202
202
  baseConfig
@@ -56,7 +56,7 @@ var webpack_lib_dev_babel_default = baseConfig({
56
56
  historyApiFallback: true,
57
57
  hot: true,
58
58
  open: [basePath],
59
- port: process.env.PORT || "auto",
59
+ port: process.env.PORT ?? "auto",
60
60
  headers: {
61
61
  "Access-Control-Allow-Origin": "*",
62
62
  "Access-Control-Allow-Methods": "GET, POST, PUT, DELETE, PATCH, OPTIONS"
@@ -67,11 +67,11 @@ const webpackFinal = (config, { configType }) => {
67
67
  config.resolve.fallback = { ...config.resolve.fallback, crypto: false };
68
68
  config.resolve.extensions?.push(".svg");
69
69
  config.resolve.plugins = [
70
- ...config.resolve.plugins || [],
70
+ ...config.resolve.plugins ?? [],
71
71
  new ResolveTypeScriptPlugin({})
72
72
  ];
73
73
  }
74
- config.externals = config.externals || {};
74
+ config.externals = config.externals ?? {};
75
75
  if (config.externals) {
76
76
  config.externals["@elliemae/pui-user-monitoring"] = "emuiUserMonitoring";
77
77
  config.externals["@elliemae/pui-app-loader"] = "emuiAppLoader";
@@ -1,8 +1,8 @@
1
1
  export { config as babelConfig };
2
2
  declare namespace config {
3
- const ignore: RegExp[];
4
- const sourceType: string;
5
- const presets: (string | (string | {
3
+ let ignore: RegExp[];
4
+ let sourceType: string;
5
+ let presets: (string | (string | {
6
6
  modules: string | boolean;
7
7
  targets: {
8
8
  node: string;
@@ -17,7 +17,7 @@ declare namespace config {
17
17
  })[] | (string | {
18
18
  runtime: string;
19
19
  })[])[];
20
- const plugins: (string | (string | {
20
+ let plugins: (string | (string | {
21
21
  alias: {
22
22
  '@': string;
23
23
  };
@@ -29,13 +29,13 @@ declare namespace config {
29
29
  })[])[];
30
30
  namespace env {
31
31
  namespace development {
32
- const plugins_1: (string | (string | {
32
+ let plugins_1: (string | (string | {
33
33
  displayName: boolean;
34
34
  })[])[];
35
35
  export { plugins_1 as plugins };
36
36
  }
37
37
  namespace production {
38
- const plugins_2: (string | (string | {
38
+ let plugins_2: (string | (string | {
39
39
  displayName: boolean;
40
40
  pure: boolean;
41
41
  })[] | (string | {
@@ -44,7 +44,7 @@ declare namespace config {
44
44
  export { plugins_2 as plugins };
45
45
  }
46
46
  namespace test {
47
- const plugins_3: (string | (string | {
47
+ let plugins_3: (string | (string | {
48
48
  displayName: boolean;
49
49
  })[] | (string | {
50
50
  requireDirective: boolean;
@@ -1,6 +1,6 @@
1
1
  import { CommandModule } from 'yargs';
2
- type Arguments = {
2
+ interface Arguments {
3
3
  service: boolean;
4
- };
4
+ }
5
5
  export declare const buildCmd: CommandModule<Record<string, never>, Arguments>;
6
6
  export {};
@@ -1,6 +1,6 @@
1
1
  import { CommandModule } from 'yargs';
2
- type Arguments = {
2
+ interface Arguments {
3
3
  transform: string;
4
- };
4
+ }
5
5
  export declare const codemodCmd: CommandModule<Record<string, never>, Arguments>;
6
6
  export {};
@@ -1,8 +1,9 @@
1
1
  import { CommandModule } from 'yargs';
2
- type Arguments = {
2
+ interface Arguments {
3
3
  css: boolean;
4
4
  js: boolean;
5
5
  fix: boolean;
6
- };
6
+ debug: boolean;
7
+ }
7
8
  export declare const lintCmd: CommandModule<Record<string, never>, Arguments>;
8
9
  export {};
@@ -1,8 +1,8 @@
1
1
  import { CommandModule } from 'yargs';
2
- type Arguments = {
2
+ interface Arguments {
3
3
  production: boolean;
4
4
  target: string;
5
5
  srcPath: string;
6
- };
6
+ }
7
7
  export declare const packCmd: CommandModule<Record<string, never>, Arguments>;
8
8
  export {};
@@ -1,6 +1,6 @@
1
1
  import { CommandModule } from 'yargs';
2
- type Arguments = {
2
+ interface Arguments {
3
3
  prod: boolean;
4
- };
4
+ }
5
5
  export declare const startCmd: CommandModule<Record<string, never>, Arguments>;
6
6
  export {};
@@ -1,8 +1,8 @@
1
1
  import { CommandModule } from 'yargs';
2
- type Arguments = {
2
+ interface Arguments {
3
3
  build: boolean;
4
4
  docs: boolean;
5
5
  output: string;
6
- };
6
+ }
7
7
  export declare const storybookCmd: CommandModule<Record<string, never>, Arguments>;
8
8
  export {};
@@ -1,11 +1,11 @@
1
1
  import { CommandModule } from 'yargs';
2
- type Arguments = {
2
+ interface Arguments {
3
3
  fix: boolean;
4
4
  watch: boolean;
5
5
  debug: boolean;
6
6
  passWithNoTests: boolean;
7
7
  findReleatedTests: boolean;
8
8
  silent: boolean;
9
- };
9
+ }
10
10
  export declare const testCmd: CommandModule<Record<string, never>, Arguments>;
11
11
  export {};
@@ -1,5 +1,5 @@
1
1
  import { CommandModule } from 'yargs';
2
- export type Arguments = {
2
+ export interface Arguments {
3
3
  files: string[];
4
- };
4
+ }
5
5
  export declare const tscheckCmd: CommandModule<Record<string, never>, Arguments>;
@@ -4,6 +4,7 @@ export declare const logInfo: {
4
4
  (...data: any[]): void;
5
5
  (message?: any, ...optionalParams: any[]): void;
6
6
  };
7
+ export declare const logWarning: (...args: string[]) => void;
7
8
  export declare const logSuccess: (...args: string[]) => void;
8
9
  export declare const logError: {
9
10
  (...data: any[]): void;
@@ -1,9 +1,9 @@
1
1
  import { CommandModule } from 'yargs';
2
- type Arguments = {
2
+ interface Arguments {
3
3
  deleteTags: boolean;
4
4
  useRegistry: boolean;
5
5
  useWorkspace: boolean;
6
6
  lernaOptions?: string;
7
- };
7
+ }
8
8
  export declare const versionCmd: CommandModule<Record<string, never>, Arguments>;
9
9
  export {};
@@ -1,10 +1,10 @@
1
1
  import { CommandModule } from 'yargs';
2
- type Arguments = {
2
+ interface Arguments {
3
3
  fix?: boolean;
4
4
  watch?: boolean;
5
5
  passWithNoTests?: boolean;
6
6
  findReleatedTests?: boolean;
7
7
  silent?: boolean;
8
- };
8
+ }
9
9
  export declare const vitestCmd: CommandModule<Record<string, never>, Arguments>;
10
10
  export {};
@@ -1,4 +1,4 @@
1
1
  export namespace commitlintConfig {
2
- const _extends: string[];
2
+ let _extends: string[];
3
3
  export { _extends as extends };
4
4
  }
@@ -6,24 +6,24 @@ export const baseOverrides: {
6
6
  };
7
7
  }[];
8
8
  export namespace baseConfig {
9
- export const parser: string;
9
+ export let parser: string;
10
10
  export { basePlugins as plugins };
11
11
  export namespace env {
12
- const jest: boolean;
13
- const browser: boolean;
14
- const node: boolean;
15
- const es2021: boolean;
12
+ let jest: boolean;
13
+ let browser: boolean;
14
+ let node: boolean;
15
+ let es2021: boolean;
16
16
  }
17
17
  export namespace parserOptions {
18
- const sourceType: string;
18
+ let sourceType: string;
19
19
  namespace ecmaFeatures {
20
- const jsx: boolean;
20
+ let jsx: boolean;
21
21
  }
22
22
  namespace babelOptions {
23
- const plugins: string[];
23
+ let plugins: string[];
24
24
  }
25
25
  }
26
- export const settings: {
26
+ export let settings: {
27
27
  react: {
28
28
  version: string;
29
29
  };
@@ -36,11 +36,18 @@ export namespace baseConfig {
36
36
  };
37
37
  };
38
38
  };
39
- export const ignorePatterns: string[];
39
+ export let ignorePatterns: string[];
40
40
  }
41
41
  export const basePlugins: string[];
42
42
  export const baseRules: {
43
- "prettier/prettier": (string | typeof prettierOptions)[];
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");
@@ -1,7 +1,14 @@
1
1
  export const esConfig: {
2
2
  extends: string[];
3
3
  rules: {
4
- "prettier/prettier": (string | typeof import("../prettier.config.cjs"))[];
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 | typeof import("../prettier.config.cjs"))[];
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;
@@ -20,14 +20,14 @@ export const tsBaseRules: {
20
20
  })[];
21
21
  };
22
22
  export namespace tsBaseConfig {
23
- const files: string[];
24
- const parser: string;
25
- const plugins: string[];
23
+ let files: string[];
24
+ let parser: string;
25
+ let plugins: string[];
26
26
  namespace parserOptions {
27
- const tsconfigRootDir: string;
28
- const project: string;
27
+ let tsconfigRootDir: string;
28
+ let project: boolean;
29
29
  }
30
- const settings: {
30
+ let settings: {
31
31
  'import/resolver': {
32
32
  typescript: {
33
33
  alwaysTryTypes: boolean;
@@ -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 | typeof import("../../prettier.config.cjs"))[];
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;
@@ -75,7 +82,7 @@ export const tsConfig: {
75
82
  plugins: string[];
76
83
  parserOptions: {
77
84
  tsconfigRootDir: string;
78
- project: string;
85
+ project: boolean;
79
86
  };
80
87
  settings: {
81
88
  'import/resolver': {
@@ -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 | typeof import("../../prettier.config.cjs"))[];
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;
@@ -106,7 +113,7 @@ export const tsReactConfig: {
106
113
  plugins: string[];
107
114
  parserOptions: {
108
115
  tsconfigRootDir: string;
109
- project: string;
116
+ project: boolean;
110
117
  };
111
118
  settings: {
112
119
  'import/resolver': {
@@ -1,5 +1,5 @@
1
1
  export const lintStagedConfig: {
2
- "*.{js,ts,jsx,tsx,md,mdx,html,css,json}": string[];
3
- "*.{ts,tsx}": string[];
4
- "*.{js,ts,jsx,tsx}": string[];
2
+ '*.{js,ts,jsx,tsx,md,mdx,html,css,json}': string[];
3
+ '*.{ts,tsx}': string[];
4
+ '*.{js,ts,jsx,tsx}': string[];
5
5
  };
@@ -1,8 +1,8 @@
1
1
  export namespace prettierConfig {
2
- const printWidth: number;
3
- const tabWidth: number;
4
- const useTabs: boolean;
5
- const semi: boolean;
6
- const singleQuote: boolean;
7
- const trailingComma: string;
2
+ let printWidth: number;
3
+ let tabWidth: number;
4
+ let useTabs: boolean;
5
+ let semi: boolean;
6
+ let singleQuote: boolean;
7
+ let trailingComma: string;
8
8
  }
@@ -1,10 +1,10 @@
1
1
  export namespace stylelintConfig {
2
- export const ignoreFiles: string[];
3
- export const customSyntax: string;
4
- const _extends: string[];
2
+ export let ignoreFiles: string[];
3
+ export let customSyntax: string;
4
+ let _extends: string[];
5
5
  export { _extends as extends };
6
- export const rules: {
7
- 'selector-type-no-unknown': null;
8
- 'function-no-unknown': null;
6
+ export let rules: {
7
+ "selector-type-no-unknown": null;
8
+ "function-no-unknown": null;
9
9
  };
10
10
  }
@@ -1,7 +1,7 @@
1
- export const branches: (string | {
1
+ export let branches: (string | {
2
2
  name: string;
3
3
  prerelease: boolean;
4
4
  })[];
5
- export const plugins: (string | (string | {
5
+ export let plugins: (string | (string | {
6
6
  changelogTitle: string;
7
7
  })[])[];
@@ -1,13 +1,13 @@
1
1
  /// <reference types="node" />
2
2
  import fs from 'node:fs';
3
3
  import { Application, Response } from 'express';
4
- type CSPConfig = {
4
+ interface CSPConfig {
5
5
  buildPath: string;
6
6
  page?: string;
7
7
  nonceRegex?: RegExp;
8
8
  res: Response<unknown, Record<string, unknown>>;
9
9
  fileSystem?: typeof fs;
10
- };
10
+ }
11
11
  export declare const sendFileWithCSPNonce: ({ buildPath, page, nonceRegex, res, fileSystem, }: CSPConfig) => void;
12
12
  export declare const csp: (app: Application) => void;
13
13
  export {};