Skip to content

Conversation

@ersachin3112
Copy link
Contributor

@ersachin3112 ersachin3112 commented Jul 24, 2025

This PR contains a:

  • bugfix
  • new feature
  • code refactor
  • test update
  • typo fix
  • metadata update

Motivation / Use-Case

upgrade eslint from v8 to v9

Breaking Changes

No

Additional Info

No

@codecov
Copy link

codecov bot commented Jul 24, 2025

Codecov Report

❌ Patch coverage is 82.35294% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.09%. Comparing base (867550c) to head (5f62e6d).
⚠️ Report is 26 commits behind head on master.

Files with missing lines Patch % Lines
src/minify.js 0.00% 2 Missing ⚠️
src/index.js 83.33% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master     #156       +/-   ##
===========================================
- Coverage   96.31%   85.09%   -11.22%     
===========================================
  Files           3        3               
  Lines         190      208       +18     
  Branches       59       69       +10     
===========================================
- Hits          183      177        -6     
- Misses          6       30       +24     
  Partials        1        1               

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Member

@snitin315 snitin315 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- is not needed in JSDoc

src/index.js Outdated
Comment on lines 96 to 98
* @property {string} name - The name of the minimizer
* @property {string} input - The input content
* @property {{ implementation: MinimizerImplementation<T>, options: MinimizerOptions<T> }} minimizer - The minimizer configuration
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @property {string} name - The name of the minimizer
* @property {string} input - The input content
* @property {{ implementation: MinimizerImplementation<T>, options: MinimizerOptions<T> }} minimizer - The minimizer configuration
* @property {string} name The name of the minimizer
* @property {string} input The input content
* @property {{ implementation: MinimizerImplementation<T>, options: MinimizerOptions<T> }} minimizer The minimizer configuration

src/index.js Outdated
Comment on lines 103 to 105
* @property {Array<{ code: string }>} outputs - Array of output objects
* @property {Array<Warning | WarningObject | string>} warnings - Array of warnings
* @property {Array<Error | ErrorObject | string>} errors - Array of errors
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @property {Array<{ code: string }>} outputs - Array of output objects
* @property {Array<Warning | WarningObject | string>} warnings - Array of warnings
* @property {Array<Error | ErrorObject | string>} errors - Array of errors
* @property {Array<{ code: string }>} outputs Array of output objects
* @property {Array<Warning | WarningObject | string>} warnings Array of warnings
* @property {Array<Error | ErrorObject | string>} errors Array of errors

src/index.js Outdated
Comment on lines 119 to 122
* @property {Rule=} test - Test rule for files to process
* @property {Rule=} include - Include rule for files to process
* @property {Rule=} exclude - Exclude rule for files to process
* @property {Parallel=} parallel - Parallel processing configuration
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @property {Rule=} test - Test rule for files to process
* @property {Rule=} include - Include rule for files to process
* @property {Rule=} exclude - Exclude rule for files to process
* @property {Parallel=} parallel - Parallel processing configuration
* @property {Rule=} test Test rule for files to process
* @property {Rule=} include Include rule for files to process
* @property {Rule=} exclude Exclude rule for files to process
* @property {Parallel=} parallel Parallel processing configuration

src/utils.js Outdated
errors: result.errors
? result.errors.map((diagnostic) => {
const error = new Error(diagnostic.message);
// eslint-disable-next-line jsdoc/no-restricted-syntax
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid to use // eslint-disable-next-line jsdoc/no-restricted-syntax when any expected, just add

// eslint-disable-next-line jsdoc/no-restricted-syntax
/** @typedef {any} EXPECTED_ANY */

And then use EXPECTED_ANY in place where you should have any

@alexander-akait
Copy link
Member

@ersachin3112 Can you look why the coverage is decreased?

@ersachin3112
Copy link
Contributor Author

@ersachin3112 Can you look why the coverage is decreased?

not sure, i have not added any additional code

@alexander-akait
Copy link
Member

@ersachin3112 We have these changes - #156 (comment), please take a look why it was changed, maybe we need more tests or uncomment something, or we now use node: prefix so some mocks can't work anymore

@alexander-akait alexander-akait merged commit 93bd62e into webpack:master Jul 28, 2025
29 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants