feat: bundle-stats plugin poc implementation #2497
Annotations
10 errors and 10 warnings
|
<✓> ESLint | Disallow the `any` type:
packages/plugin-bundle-stats/src/lib/runner/bundle-stats-runner.ts#L109
Unexpected any. Specify a different type.
|
|
<✓> ESLint | Disallow the `any` type:
packages/plugin-bundle-stats/src/lib/runner/bundle-stats-runner.ts#L107
Unexpected any. Specify a different type.
|
|
<✓> ESLint | Disallow the `any` type:
packages/plugin-bundle-stats/src/lib/runner/bundle-stats-runner.ts#L104
Unexpected any. Specify a different type.
|
|
<✓> ESLint | Disallow the `any` type:
packages/plugin-bundle-stats/src/lib/runner/bundle-stats-runner.ts#L104
Unexpected any. Specify a different type.
|
|
<✓> ESLint | Disallow the `any` type:
packages/plugin-bundle-stats/src/lib/runner/bundle-stats-runner.ts#L101
Unexpected any. Specify a different type.
|
|
<✓> ESLint | Disallow the `any` type:
packages/plugin-bundle-stats/src/lib/runner/bundle-stats-runner.ts#L101
Unexpected any. Specify a different type.
|
|
<✓> ESLint | Require `const` declarations for variables that are never reassigned after declared:
packages/plugin-bundle-stats/src/lib/runner/audits/details/grouping.ts#L467
'groupedNodes' is never reassigned. Use 'const' instead.
|
|
<✓> ESLint | Require `const` declarations for variables that are never reassigned after declared:
packages/plugin-bundle-stats/src/lib/runner/audits/details/grouping.ts#L381
'commonSegments' is never reassigned. Use 'const' instead.
|
|
<✓> TypeScript | Semantic errors:
packages/models/src/lib/configuration.ts#L9
TS2769: No overload matches this call.
Overload 1 of 2, '(params?: string | { error?: string | $ZodErrorMap<$ZodIssueInvalidType<unknown>> | undefined; message?: string | undefined; } | undefined): ZodString', gave the following error.
Object literal may only specify known properties, and 'description' does not exist in type '{ error?: string | $ZodErrorMap<$ZodIssueInvalidType<unknown>> | undefined; message?: string | undefined; }'.
Overload 2 of 2, '(params?: string | { error?: string | $ZodErrorMap<$ZodIssueInvalidType<unknown>> | undefined; message?: string | undefined; } | undefined): $ZodType<...>', gave the following error.
Object literal may only specify known properties, and 'description' does not exist in type '{ error?: string | $ZodErrorMap<$ZodIssueInvalidType<unknown>> | undefined; message?: string | undefined; }'.
|
|
<✓> TypeScript | Semantic errors:
packages/models/src/lib/configuration.ts#L4
TS2769: No overload matches this call.
Overload 1 of 2, '(params?: string | { error?: string | $ZodErrorMap<$ZodIssueInvalidType<unknown>> | undefined; message?: string | undefined; } | undefined): ZodString', gave the following error.
Object literal may only specify known properties, and 'description' does not exist in type '{ error?: string | $ZodErrorMap<$ZodIssueInvalidType<unknown>> | undefined; message?: string | undefined; }'.
Overload 2 of 2, '(params?: string | { error?: string | $ZodErrorMap<$ZodIssueInvalidType<unknown>> | undefined; message?: string | undefined; } | undefined): $ZodType<...>', gave the following error.
Object literal may only specify known properties, and 'description' does not exist in type '{ error?: string | $ZodErrorMap<$ZodIssueInvalidType<unknown>> | undefined; message?: string | undefined; }'.
|
|
<✓> ESLint | Enforce type definitions to consistently use either `interface` or `type`:
packages/plugin-bundle-stats/src/lib/runner/audits/details/tree.ts#L36
Use a `type` instead of an `interface`.
|
|
<✓> ESLint | Enforce type definitions to consistently use either `interface` or `type`:
packages/plugin-bundle-stats/src/lib/runner/audits/details/table.ts#L26
Use a `type` instead of an `interface`.
|
|
|
|
|
|
|
|
<✓> ESLint | Return of boolean expressions should not be wrapped into an "if-then-else" statement:
packages/plugin-bundle-stats/src/lib/runner/audits/selection.ts#L146
Replace this if-then-else flow by a single return statement.
|
|
<✓> ESLint | Collapsible "if" statements should be merged:
packages/plugin-bundle-stats/src/lib/runner/unify/unify.webpack.ts#L130
Merge this if statement with the nested one.
|
|
<✓> ESLint | Collapsible "if" statements should be merged:
packages/plugin-bundle-stats/src/lib/runner/unify/unify.rsbuild.ts#L205
Merge this if statement with the nested one.
|
|
<✓> ESLint | Collapsible "if" statements should be merged:
packages/plugin-bundle-stats/src/lib/runner/audits/selection.ts#L140
Merge this if statement with the nested one.
|
|
<✓> ESLint | Collapsible "if" statements should be merged:
packages/plugin-bundle-stats/src/lib/runner/audits/selection.ts#L134
Merge this if statement with the nested one.
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
code-pushup-report
Expired
|
702 KB |
sha256:8b0154638fa4272dc2b57544088d63b9c28eaafe8e2b95717f8b7b1f2eae2701
|
|