@elliemae/pui-cli 7.27.1 → 8.0.0-next.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.
Files changed (128) hide show
  1. package/README.md +0 -1
  2. package/{dist/esm/typescript/app.tsconfig.json → app.tsconfig.json} +2 -2
  3. package/dist/cjs/cli.js +14 -12
  4. package/dist/cjs/commands/build.js +8 -7
  5. package/dist/cjs/commands/codemod.js +6 -8
  6. package/dist/cjs/commands/gendoc.js +1 -1
  7. package/dist/cjs/commands/lint.js +20 -22
  8. package/dist/cjs/commands/pack.js +24 -19
  9. package/dist/cjs/commands/start.js +10 -9
  10. package/dist/cjs/commands/storybook.js +18 -17
  11. package/dist/cjs/commands/test.js +36 -30
  12. package/dist/cjs/commands/tscheck.js +8 -7
  13. package/dist/cjs/commands/utils.js +11 -6
  14. package/dist/cjs/commands/version.js +20 -18
  15. package/dist/cjs/commands/vitest.js +31 -27
  16. package/dist/cjs/index.cjs +0 -2
  17. package/dist/cjs/index.js +2 -2
  18. package/dist/cjs/lint-config/eslint/common.cjs +88 -85
  19. package/dist/cjs/lint-config/stylelint.config.cjs +1 -1
  20. package/dist/cjs/monorepo/delete-merged-tags.js +1 -1
  21. package/dist/cjs/monorepo/set-registry-version.js +2 -2
  22. package/dist/cjs/monorepo/set-workspace-version.js +2 -2
  23. package/dist/cjs/monorepo/utils.js +54 -0
  24. package/dist/cjs/release.config.cjs +0 -7
  25. package/dist/cjs/server/appRoutes.js +75 -0
  26. package/dist/cjs/server/csp.js +3 -4
  27. package/dist/cjs/server/index.js +13 -11
  28. package/dist/cjs/server/middlewares.js +7 -4
  29. package/dist/cjs/server/utils.js +1 -1
  30. package/dist/cjs/testing/setup-test-env.js +5 -24
  31. package/dist/cjs/testing/vitest.config.js +1 -1
  32. package/dist/cjs/transpile/esbuild.js +1 -1
  33. package/dist/cjs/utils.js +50 -0
  34. package/dist/cjs/webpack/helpers.js +3 -3
  35. package/dist/cjs/webpack/webpack.base.babel.js +3 -12
  36. package/dist/cjs/webpack/webpack.dev.babel.js +10 -7
  37. package/dist/cjs/webpack/webpack.lib.base.babel.js +4 -7
  38. package/dist/cjs/webpack/webpack.lib.dev.babel.js +1 -0
  39. package/dist/cjs/webpack/webpack.lib.prod.babel.js +1 -1
  40. package/dist/cjs/webpack/webpack.prod.babel.js +8 -16
  41. package/dist/cjs/webpack/webpack.storybook.js +27 -20
  42. package/dist/esm/cli.js +14 -12
  43. package/dist/esm/commands/build.js +8 -7
  44. package/dist/esm/commands/codemod.js +6 -8
  45. package/dist/esm/commands/gendoc.js +1 -1
  46. package/dist/esm/commands/lint.js +26 -22
  47. package/dist/esm/commands/pack.js +31 -19
  48. package/dist/esm/commands/start.js +10 -9
  49. package/dist/esm/commands/storybook.js +18 -17
  50. package/dist/esm/commands/test.js +36 -30
  51. package/dist/esm/commands/tscheck.js +8 -7
  52. package/dist/esm/commands/utils.js +10 -5
  53. package/dist/esm/commands/version.js +20 -18
  54. package/dist/esm/commands/vitest.js +31 -27
  55. package/dist/esm/index.cjs +0 -2
  56. package/dist/esm/index.js +1 -1
  57. package/dist/esm/lint-config/eslint/common.cjs +88 -85
  58. package/dist/esm/lint-config/stylelint.config.cjs +1 -1
  59. package/dist/esm/monorepo/delete-merged-tags.js +1 -1
  60. package/dist/esm/monorepo/set-registry-version.js +2 -2
  61. package/dist/esm/monorepo/set-workspace-version.js +2 -2
  62. package/dist/esm/monorepo/utils.js +24 -0
  63. package/dist/esm/release.config.cjs +0 -7
  64. package/dist/{cjs/server/app-routes.cjs → esm/server/appRoutes.js} +26 -23
  65. package/dist/esm/server/csp.js +3 -4
  66. package/dist/esm/server/index.js +13 -11
  67. package/dist/esm/server/middlewares.js +7 -4
  68. package/dist/esm/server/utils.js +1 -1
  69. package/dist/esm/testing/setup-test-env.js +5 -2
  70. package/dist/esm/testing/vitest.config.js +1 -1
  71. package/dist/esm/transpile/esbuild.js +1 -1
  72. package/dist/esm/utils.js +20 -0
  73. package/dist/esm/webpack/helpers.js +3 -3
  74. package/dist/esm/webpack/webpack.base.babel.js +3 -12
  75. package/dist/esm/webpack/webpack.dev.babel.js +10 -7
  76. package/dist/esm/webpack/webpack.lib.base.babel.js +4 -7
  77. package/dist/esm/webpack/webpack.lib.dev.babel.js +1 -0
  78. package/dist/esm/webpack/webpack.lib.prod.babel.js +2 -2
  79. package/dist/esm/webpack/webpack.prod.babel.js +9 -17
  80. package/dist/esm/webpack/webpack.storybook.js +27 -20
  81. package/dist/types/commands/build.d.ts +6 -14
  82. package/dist/types/commands/codemod.d.ts +6 -6
  83. package/dist/types/commands/gendoc.d.ts +2 -6
  84. package/dist/types/commands/lint.d.ts +8 -29
  85. package/dist/types/commands/pack.d.ts +8 -26
  86. package/dist/types/commands/start.d.ts +6 -13
  87. package/dist/types/commands/storybook.d.ts +8 -27
  88. package/dist/types/commands/test.d.ts +11 -39
  89. package/dist/types/commands/tscheck.d.ts +5 -14
  90. package/dist/types/commands/utils.d.ts +11 -11
  91. package/dist/types/commands/version.d.ts +9 -28
  92. package/dist/types/commands/vitest.d.ts +10 -35
  93. package/dist/types/index.d.cts +1 -2
  94. package/dist/types/index.d.ts +11 -11
  95. package/dist/types/lint-config/eslint/common.d.cts +58 -55
  96. package/dist/types/lint-config/eslint/non-react.d.cts +34 -31
  97. package/dist/types/lint-config/eslint/react.d.cts +58 -55
  98. package/dist/types/lint-config/eslint/typescript/non-react.d.cts +28 -28
  99. package/dist/types/lint-config/eslint/typescript/react.d.cts +52 -52
  100. package/dist/types/lint-config/stylelint.config.d.cts +0 -1
  101. package/dist/types/monorepo/delete-merged-tags.d.ts +1 -1
  102. package/dist/types/monorepo/set-registry-version.d.ts +1 -1
  103. package/dist/types/monorepo/set-workspace-version.d.ts +1 -1
  104. package/dist/types/monorepo/utils.d.ts +1 -0
  105. package/dist/types/release.config.d.cts +0 -2
  106. package/dist/types/server/appRoutes.d.ts +2 -0
  107. package/dist/types/server/csp.d.ts +12 -9
  108. package/dist/types/server/logger.d.ts +7 -4
  109. package/dist/types/server/middlewares.d.ts +6 -2
  110. package/dist/types/server/utils.d.ts +3 -3
  111. package/dist/types/testing/jest.config.d.cts +10 -10
  112. package/dist/types/testing/jest.node.config.d.cts +10 -10
  113. package/dist/types/testing/vitest.config.d.ts +1 -1
  114. package/dist/types/utils.d.ts +4 -0
  115. package/dist/types/webpack/helpers.d.ts +19 -18
  116. package/dist/types/webpack/webpack.base.babel.d.ts +3 -106
  117. package/dist/types/webpack/webpack.dev.babel.d.ts +2 -1
  118. package/dist/types/webpack/webpack.lib.base.babel.d.ts +3 -102
  119. package/dist/types/webpack/webpack.lib.dev.babel.d.ts +3 -101
  120. package/dist/types/webpack/webpack.lib.prod.babel.d.ts +2 -101
  121. package/dist/types/webpack/webpack.prod.babel.d.ts +3 -2
  122. package/dist/types/webpack/webpack.storybook.d.ts +5 -4
  123. package/{dist/cjs/typescript/library.tsconfig.json → library.tsconfig.json} +3 -3
  124. package/package.json +74 -51
  125. package/dist/cjs/typescript/app.tsconfig.json +0 -23
  126. package/dist/esm/server/app-routes.cjs +0 -42
  127. package/dist/esm/typescript/library.tsconfig.json +0 -23
  128. package/dist/types/server/app-routes.d.cts +0 -1
@@ -1,6 +1,2 @@
1
- export namespace gendocCmd {
2
- function handler(): Promise<void>;
3
- const command: string;
4
- const describe: string;
5
- const builder: {};
6
- }
1
+ import { CommandModule } from 'yargs';
2
+ export declare const gendocCmd: CommandModule<Record<string, never>, Record<string, never>>;
@@ -1,29 +1,8 @@
1
- export namespace lintCmd {
2
- function handler(argv: any): Promise<0 | -1>;
3
- const command: string;
4
- const describe: string;
5
- namespace builder {
6
- namespace css {
7
- export const alias: string;
8
- export const type: string;
9
- const _default: boolean;
10
- export { _default as default };
11
- }
12
- namespace js {
13
- const alias_1: string;
14
- export { alias_1 as alias };
15
- const type_1: string;
16
- export { type_1 as type };
17
- const _default_1: boolean;
18
- export { _default_1 as default };
19
- }
20
- namespace fix {
21
- const alias_2: string;
22
- export { alias_2 as alias };
23
- const type_2: string;
24
- export { type_2 as type };
25
- const _default_2: boolean;
26
- export { _default_2 as default };
27
- }
28
- }
29
- }
1
+ import { CommandModule } from 'yargs';
2
+ type Arguments = {
3
+ css: boolean;
4
+ js: boolean;
5
+ fix: boolean;
6
+ };
7
+ export declare const lintCmd: CommandModule<Record<string, never>, Arguments>;
8
+ export {};
@@ -1,26 +1,8 @@
1
- export namespace packCmd {
2
- function handler(argv: any): Promise<void>;
3
- const command: string;
4
- const describe: string;
5
- namespace builder {
6
- namespace production {
7
- export const alias: string;
8
- export const type: string;
9
- const _default: boolean;
10
- export { _default as default };
11
- }
12
- namespace target {
13
- const alias_1: string;
14
- export { alias_1 as alias };
15
- const type_1: string;
16
- export { type_1 as type };
17
- export const description: string;
18
- }
19
- namespace srcPath {
20
- const type_2: string;
21
- export { type_2 as type };
22
- const _default_1: string;
23
- export { _default_1 as default };
24
- }
25
- }
26
- }
1
+ import { CommandModule } from 'yargs';
2
+ type Arguments = {
3
+ production: boolean;
4
+ target: string;
5
+ srcPath: string;
6
+ };
7
+ export declare const packCmd: CommandModule<Record<string, never>, Arguments>;
8
+ export {};
@@ -1,13 +1,6 @@
1
- export namespace startCmd {
2
- function handler(argv: any): Promise<void>;
3
- const command: string;
4
- const describe: string;
5
- namespace builder {
6
- namespace prod {
7
- export const alias: string;
8
- const _default: boolean;
9
- export { _default as default };
10
- export const type: string;
11
- }
12
- }
13
- }
1
+ import { CommandModule } from 'yargs';
2
+ type Arguments = {
3
+ prod: boolean;
4
+ };
5
+ export declare const startCmd: CommandModule<Record<string, never>, Arguments>;
6
+ export {};
@@ -1,27 +1,8 @@
1
- export namespace storybookCmd {
2
- function handler(argv: any): Promise<void>;
3
- const command: string;
4
- const describe: string;
5
- namespace builder {
6
- namespace build {
7
- export const alias: string;
8
- export const type: string;
9
- const _default: boolean;
10
- export { _default as default };
11
- }
12
- namespace docs {
13
- const type_1: string;
14
- export { type_1 as type };
15
- const _default_1: boolean;
16
- export { _default_1 as default };
17
- }
18
- namespace output {
19
- const alias_1: string;
20
- export { alias_1 as alias };
21
- const type_2: string;
22
- export { type_2 as type };
23
- const _default_2: string;
24
- export { _default_2 as default };
25
- }
26
- }
27
- }
1
+ import { CommandModule } from 'yargs';
2
+ type Arguments = {
3
+ build: boolean;
4
+ docs: boolean;
5
+ output: string;
6
+ };
7
+ export declare const storybookCmd: CommandModule<Record<string, never>, Arguments>;
8
+ export {};
@@ -1,39 +1,11 @@
1
- export namespace testCmd {
2
- function handler(argv: any): Promise<0 | -1>;
3
- const command: string;
4
- const describe: string;
5
- namespace builder {
6
- namespace fix {
7
- const alias: string;
8
- const type: string;
9
- }
10
- namespace watch {
11
- const alias_1: string;
12
- export { alias_1 as alias };
13
- const type_1: string;
14
- export { type_1 as type };
15
- }
16
- namespace debug {
17
- const type_2: string;
18
- export { type_2 as type };
19
- }
20
- namespace passWithNoTests {
21
- const alias_2: string;
22
- export { alias_2 as alias };
23
- const type_3: string;
24
- export { type_3 as type };
25
- }
26
- namespace findReleatedTests {
27
- const alias_3: string;
28
- export { alias_3 as alias };
29
- const type_4: string;
30
- export { type_4 as type };
31
- }
32
- namespace silent {
33
- const alias_4: string;
34
- export { alias_4 as alias };
35
- const type_5: string;
36
- export { type_5 as type };
37
- }
38
- }
39
- }
1
+ import { CommandModule } from 'yargs';
2
+ type Arguments = {
3
+ fix: boolean;
4
+ watch: boolean;
5
+ debug: boolean;
6
+ passWithNoTests: boolean;
7
+ findReleatedTests: boolean;
8
+ silent: boolean;
9
+ };
10
+ export declare const testCmd: CommandModule<Record<string, never>, Arguments>;
11
+ export {};
@@ -1,14 +1,5 @@
1
- export namespace tscheckCmd {
2
- function handler({ files }: {
3
- files: any;
4
- }): Promise<void>;
5
- const command: string;
6
- const describe: string;
7
- namespace builder {
8
- namespace files {
9
- export const type: string;
10
- const _default: never[];
11
- export { _default as default };
12
- }
13
- }
14
- }
1
+ import { CommandModule } from 'yargs';
2
+ export type Arguments = {
3
+ files: string[];
4
+ };
5
+ export declare const tscheckCmd: CommandModule<Record<string, never>, Arguments>;
@@ -1,17 +1,17 @@
1
- export function exec(command: any, options?: {
2
- stdio: string;
3
- }): Promise<import("execa").ExecaReturnValue<string> & import("execa").ExecaReturnValue<Buffer>>;
4
- export const logInfo: {
1
+ /// <reference types="node" />
2
+ export declare const exec: (command: string, options?: import("execa").Options<null> | undefined) => Promise<import("execa").ExecaReturnValue<Buffer>>;
3
+ export declare const logInfo: {
5
4
  (...data: any[]): void;
6
5
  (message?: any, ...optionalParams: any[]): void;
7
6
  };
8
- export function logSuccess(...args: any[]): void;
9
- export const logError: {
7
+ export declare const logSuccess: (...args: string[]) => void;
8
+ export declare const logError: {
10
9
  (...data: any[]): void;
11
10
  (message?: any, ...optionalParams: any[]): void;
12
11
  };
13
- export function writeAppInfo(): Promise<void>;
14
- export function copyBuildAssetsToVersionedFolder(): Promise<void>;
15
- export function isPathExist(pathToCheck: any): Promise<boolean>;
16
- export function isApp(): Promise<boolean>;
17
- export function getCIEnv(): boolean;
12
+ export declare const writeAppInfo: () => Promise<void>;
13
+ export declare const copyBuildAssetsToVersionedFolder: () => Promise<void>;
14
+ export declare const isPathExist: (pathToCheck: string) => Promise<boolean>;
15
+ export declare const isApp: () => Promise<boolean>;
16
+ export declare const getCIEnv: () => boolean;
17
+ export declare const isTypeScriptEnabled: () => boolean;
@@ -1,28 +1,9 @@
1
- export namespace versionCmd {
2
- function handler(argv: any): Promise<void>;
3
- const command: string;
4
- const describe: string;
5
- namespace builder {
6
- namespace deleteTags {
7
- export const type: string;
8
- const _default: boolean;
9
- export { _default as default };
10
- }
11
- namespace useRegistry {
12
- const type_1: string;
13
- export { type_1 as type };
14
- const _default_1: boolean;
15
- export { _default_1 as default };
16
- }
17
- namespace useWorkspace {
18
- const type_2: string;
19
- export { type_2 as type };
20
- const _default_2: boolean;
21
- export { _default_2 as default };
22
- }
23
- namespace lernaOptions {
24
- const type_3: string;
25
- export { type_3 as type };
26
- }
27
- }
28
- }
1
+ import { CommandModule } from 'yargs';
2
+ type Arguments = {
3
+ deleteTags: boolean;
4
+ useRegistry: boolean;
5
+ useWorkspace: boolean;
6
+ lernaOptions?: string;
7
+ };
8
+ export declare const versionCmd: CommandModule<Record<string, never>, Arguments>;
9
+ export {};
@@ -1,35 +1,10 @@
1
- export namespace vitestCmd {
2
- function handler(argv: any): Promise<0 | -1>;
3
- const command: string;
4
- const describe: string;
5
- namespace builder {
6
- namespace fix {
7
- const alias: string;
8
- const type: string;
9
- }
10
- namespace watch {
11
- const alias_1: string;
12
- export { alias_1 as alias };
13
- const type_1: string;
14
- export { type_1 as type };
15
- }
16
- namespace passWithNoTests {
17
- const alias_2: string;
18
- export { alias_2 as alias };
19
- const type_2: string;
20
- export { type_2 as type };
21
- }
22
- namespace related {
23
- const alias_3: string;
24
- export { alias_3 as alias };
25
- const type_3: string;
26
- export { type_3 as type };
27
- }
28
- namespace silent {
29
- const alias_4: string;
30
- export { alias_4 as alias };
31
- const type_4: string;
32
- export { type_4 as type };
33
- }
34
- }
35
- }
1
+ import { CommandModule } from 'yargs';
2
+ type Arguments = {
3
+ fix?: boolean;
4
+ watch?: boolean;
5
+ passWithNoTests?: boolean;
6
+ findReleatedTests?: boolean;
7
+ silent?: boolean;
8
+ };
9
+ export declare const vitestCmd: CommandModule<Record<string, never>, Arguments>;
10
+ export {};
@@ -6,5 +6,4 @@ import { prettierConfig } from "./lint-config/prettier.config.cjs";
6
6
  import { commitlintConfig } from "./lint-config/commitlint.config.cjs";
7
7
  import { jestConfig } from "./testing/jest.config.cjs";
8
8
  import { jestNodeConfig } from "./testing/jest.node.config.cjs";
9
- import { loadRoutes } from "./server/app-routes.cjs";
10
- export { babelConfig, eslintBaseConfig, eslintConfig, stylelintConfig, prettierConfig, commitlintConfig, jestConfig, jestNodeConfig, loadRoutes };
9
+ export { babelConfig, eslintBaseConfig, eslintConfig, stylelintConfig, prettierConfig, commitlintConfig, jestConfig, jestNodeConfig };
@@ -1,11 +1,11 @@
1
- export { babelConfig } from "./babel.config.cjs";
2
- export { esConfig as eslintBaseConfig } from "./lint-config/eslint/non-react.cjs";
3
- export { esReactConfig as eslintConfig } from "./lint-config/eslint/react.cjs";
4
- export { stylelintConfig } from "./lint-config/stylelint.config.cjs";
5
- export { prettierConfig } from "./lint-config/prettier.config.cjs";
6
- export { commitlintConfig } from "./lint-config/commitlint.config.cjs";
7
- export { jestConfig } from "./testing/jest.config.cjs";
8
- export { vitestConfig } from "./testing/vitest.config.js";
9
- export { jestNodeConfig } from "./testing/jest.node.config.cjs";
10
- export { lintStagedConfig } from "./lint-config/lint-staged.config.js";
11
- export { loadRoutes } from "./server/app-routes.cjs";
1
+ export { babelConfig } from './babel.config.cjs';
2
+ export { esConfig as eslintBaseConfig } from './lint-config/eslint/non-react.cjs';
3
+ export { esReactConfig as eslintConfig } from './lint-config/eslint/react.cjs';
4
+ export { stylelintConfig } from './lint-config/stylelint.config.cjs';
5
+ export { prettierConfig } from './lint-config/prettier.config.cjs';
6
+ export { commitlintConfig } from './lint-config/commitlint.config.cjs';
7
+ export { jestConfig } from './testing/jest.config.cjs';
8
+ export { vitestConfig } from './testing/vitest.config.js';
9
+ export { jestNodeConfig } from './testing/jest.node.config.cjs';
10
+ export { lintStagedConfig } from './lint-config/lint-staged.config.js';
11
+ export { loadRoutes } from './server/appRoutes.js';
@@ -2,7 +2,7 @@ export const baseExtends: string[];
2
2
  export const baseOverrides: {
3
3
  files: string[];
4
4
  rules: {
5
- 'jest/valid-expect': string;
5
+ "jest/valid-expect": string;
6
6
  };
7
7
  }[];
8
8
  export namespace baseConfig {
@@ -19,6 +19,9 @@ export namespace baseConfig {
19
19
  namespace ecmaFeatures {
20
20
  const jsx: boolean;
21
21
  }
22
+ namespace babelOptions {
23
+ const plugins: string[];
24
+ }
22
25
  }
23
26
  export const settings: {
24
27
  react: {
@@ -27,7 +30,7 @@ export namespace baseConfig {
27
30
  jest: {
28
31
  version: number;
29
32
  };
30
- 'import/resolver': {
33
+ "import/resolver": {
31
34
  node: {
32
35
  extensions: string[];
33
36
  };
@@ -37,91 +40,91 @@ export namespace baseConfig {
37
40
  }
38
41
  export const basePlugins: string[];
39
42
  export const baseRules: {
40
- 'prettier/prettier': (string | typeof prettierOptions)[];
41
- 'arrow-body-style': (string | number)[];
42
- 'class-methods-use-this': number;
43
- 'import/imports-first': number;
44
- 'import/newline-after-import': number;
45
- 'import/no-dynamic-require': number;
46
- 'import/no-extraneous-dependencies': number;
47
- 'import/no-named-as-default': number;
48
- 'import/no-unresolved': (number | {
43
+ "prettier/prettier": (string | typeof prettierOptions)[];
44
+ "arrow-body-style": (string | number)[];
45
+ "class-methods-use-this": number;
46
+ "import/imports-first": number;
47
+ "import/newline-after-import": number;
48
+ "import/no-dynamic-require": number;
49
+ "import/no-extraneous-dependencies": number;
50
+ "import/no-named-as-default": number;
51
+ "import/no-unresolved": (number | {
49
52
  caseSensitive: boolean;
50
53
  caseSensitiveStrict: boolean;
51
54
  })[];
52
- 'import/no-webpack-loader-syntax': number;
53
- 'import/prefer-default-export': number;
54
- 'import/extensions': (string | number | {
55
+ "import/no-webpack-loader-syntax": number;
56
+ "import/prefer-default-export": number;
57
+ "import/extensions": (string | number | {
55
58
  json: string;
56
59
  js: string;
57
60
  })[];
58
61
  indent: (number | {
59
62
  SwitchCase: number;
60
63
  })[];
61
- 'max-lines': (string | {
64
+ "max-lines": (string | {
62
65
  max: number;
63
66
  skipComments: boolean;
64
67
  })[];
65
68
  complexity: (string | {
66
69
  max: number;
67
70
  })[];
68
- 'max-depth': (string | {
71
+ "max-depth": (string | {
69
72
  max: number;
70
73
  })[];
71
- 'max-lines-per-function': number;
72
- 'max-nested-callbacks': (string | {
74
+ "max-lines-per-function": number;
75
+ "max-nested-callbacks": (string | {
73
76
  max: number;
74
77
  })[];
75
- 'max-params': (string | {
78
+ "max-params": (string | {
76
79
  max: number;
77
80
  })[];
78
- 'max-statements': (string | {
81
+ "max-statements": (string | {
79
82
  max: number;
80
83
  })[];
81
- 'max-len': number;
82
- 'newline-per-chained-call': number;
83
- 'no-confusing-arrow': number;
84
- 'no-console': number;
85
- 'no-param-reassign': (string | {
84
+ "max-len": number;
85
+ "newline-per-chained-call": number;
86
+ "no-confusing-arrow": number;
87
+ "no-console": number;
88
+ "no-param-reassign": (string | {
86
89
  props: boolean;
87
90
  })[];
88
- 'no-unused-vars': number;
89
- 'no-use-before-define': number;
90
- 'prefer-template': number;
91
- 'require-yield': number;
92
- 'jsdoc/require-jsdoc': number;
93
- 'eslint-comments/disable-enable-pair': number;
91
+ "no-unused-vars": number;
92
+ "no-use-before-define": number;
93
+ "prefer-template": number;
94
+ "require-yield": number;
95
+ "jsdoc/require-jsdoc": number;
96
+ "eslint-comments/disable-enable-pair": number;
94
97
  };
95
98
  export const reactRules: {
96
- 'jsx-a11y/aria-props': number;
97
- 'jsx-a11y/heading-has-content': number;
98
- 'jsx-a11y/label-has-associated-control': (number | {
99
+ "jsx-a11y/aria-props": number;
100
+ "jsx-a11y/heading-has-content": number;
101
+ "jsx-a11y/label-has-associated-control": (number | {
99
102
  controlComponents: string[];
100
103
  })[];
101
- 'jsx-a11y/label-has-for': number;
102
- 'jsx-a11y/mouse-events-have-key-events': number;
103
- 'jsx-a11y/role-has-required-aria-props': number;
104
- 'jsx-a11y/role-supports-aria-props': number;
105
- 'react/destructuring-assignment': number;
106
- 'react-hooks/rules-of-hooks': string;
107
- 'react/jsx-closing-tag-location': number;
108
- 'react/forbid-prop-types': number;
109
- 'react/jsx-first-prop-new-line': (string | number)[];
110
- 'react/jsx-no-target-blank': number;
111
- 'react/jsx-props-no-spreading': number;
112
- 'react/jsx-uses-vars': number;
113
- 'react/require-default-props': number;
114
- 'react/require-extension': number;
115
- 'react/self-closing-comp': number;
116
- 'react/sort-comp': number;
117
- 'react/react-in-jsx-scope': number;
118
- 'react/jsx-filename-extension': (number | {
104
+ "jsx-a11y/label-has-for": number;
105
+ "jsx-a11y/mouse-events-have-key-events": number;
106
+ "jsx-a11y/role-has-required-aria-props": number;
107
+ "jsx-a11y/role-supports-aria-props": number;
108
+ "react/destructuring-assignment": number;
109
+ "react-hooks/rules-of-hooks": string;
110
+ "react/jsx-closing-tag-location": number;
111
+ "react/forbid-prop-types": number;
112
+ "react/jsx-first-prop-new-line": (string | number)[];
113
+ "react/jsx-no-target-blank": number;
114
+ "react/jsx-props-no-spreading": number;
115
+ "react/jsx-uses-vars": number;
116
+ "react/require-default-props": number;
117
+ "react/require-extension": number;
118
+ "react/self-closing-comp": number;
119
+ "react/sort-comp": number;
120
+ "react/react-in-jsx-scope": number;
121
+ "react/jsx-filename-extension": (number | {
119
122
  extensions: string[];
120
123
  })[];
121
- 'react/function-component-definition': (number | {
124
+ "react/function-component-definition": (number | {
122
125
  namedComponents: string;
123
126
  })[];
124
- 'redux-saga/no-yield-in-race': number;
125
- 'redux-saga/yield-effects': number;
127
+ "redux-saga/no-yield-in-race": number;
128
+ "redux-saga/yield-effects": number;
126
129
  };
127
130
  import prettierOptions = require("../prettier.config.cjs");
@@ -1,65 +1,65 @@
1
1
  export const esConfig: {
2
2
  extends: string[];
3
3
  rules: {
4
- 'prettier/prettier': (string | typeof import("../prettier.config.cjs"))[];
5
- 'arrow-body-style': (string | number)[];
6
- 'class-methods-use-this': number;
7
- 'import/imports-first': number;
8
- 'import/newline-after-import': number;
9
- 'import/no-dynamic-require': number;
10
- 'import/no-extraneous-dependencies': number;
11
- 'import/no-named-as-default': number;
12
- 'import/no-unresolved': (number | {
4
+ "prettier/prettier": (string | typeof import("../prettier.config.cjs"))[];
5
+ "arrow-body-style": (string | number)[];
6
+ "class-methods-use-this": number;
7
+ "import/imports-first": number;
8
+ "import/newline-after-import": number;
9
+ "import/no-dynamic-require": number;
10
+ "import/no-extraneous-dependencies": number;
11
+ "import/no-named-as-default": number;
12
+ "import/no-unresolved": (number | {
13
13
  caseSensitive: boolean;
14
14
  caseSensitiveStrict: boolean;
15
15
  })[];
16
- 'import/no-webpack-loader-syntax': number;
17
- 'import/prefer-default-export': number;
18
- 'import/extensions': (string | number | {
16
+ "import/no-webpack-loader-syntax": number;
17
+ "import/prefer-default-export": number;
18
+ "import/extensions": (string | number | {
19
19
  json: string;
20
20
  js: string;
21
21
  })[];
22
22
  indent: (number | {
23
23
  SwitchCase: number;
24
24
  })[];
25
- 'max-lines': (string | {
25
+ "max-lines": (string | {
26
26
  max: number;
27
27
  skipComments: boolean;
28
28
  })[];
29
29
  complexity: (string | {
30
30
  max: number;
31
31
  })[];
32
- 'max-depth': (string | {
32
+ "max-depth": (string | {
33
33
  max: number;
34
34
  })[];
35
- 'max-lines-per-function': number;
36
- 'max-nested-callbacks': (string | {
35
+ "max-lines-per-function": number;
36
+ "max-nested-callbacks": (string | {
37
37
  max: number;
38
38
  })[];
39
- 'max-params': (string | {
39
+ "max-params": (string | {
40
40
  max: number;
41
41
  })[];
42
- 'max-statements': (string | {
42
+ "max-statements": (string | {
43
43
  max: number;
44
44
  })[];
45
- 'max-len': number;
46
- 'newline-per-chained-call': number;
47
- 'no-confusing-arrow': number;
48
- 'no-console': number;
49
- 'no-param-reassign': (string | {
45
+ "max-len": number;
46
+ "newline-per-chained-call": number;
47
+ "no-confusing-arrow": number;
48
+ "no-console": number;
49
+ "no-param-reassign": (string | {
50
50
  props: boolean;
51
51
  })[];
52
- 'no-unused-vars': number;
53
- 'no-use-before-define': number;
54
- 'prefer-template': number;
55
- 'require-yield': number;
56
- 'jsdoc/require-jsdoc': number;
57
- 'eslint-comments/disable-enable-pair': number;
52
+ "no-unused-vars": number;
53
+ "no-use-before-define": number;
54
+ "prefer-template": number;
55
+ "require-yield": number;
56
+ "jsdoc/require-jsdoc": number;
57
+ "eslint-comments/disable-enable-pair": number;
58
58
  };
59
59
  overrides: {
60
60
  files: string[];
61
61
  rules: {
62
- 'jest/valid-expect': string;
62
+ "jest/valid-expect": string;
63
63
  };
64
64
  }[];
65
65
  parser: string;
@@ -75,6 +75,9 @@ export const esConfig: {
75
75
  ecmaFeatures: {
76
76
  jsx: boolean;
77
77
  };
78
+ babelOptions: {
79
+ plugins: string[];
80
+ };
78
81
  };
79
82
  settings: {
80
83
  react: {
@@ -83,7 +86,7 @@ export const esConfig: {
83
86
  jest: {
84
87
  version: number;
85
88
  };
86
- 'import/resolver': {
89
+ "import/resolver": {
87
90
  node: {
88
91
  extensions: string[];
89
92
  };