-
-
Notifications
You must be signed in to change notification settings - Fork 6
chore: upgrade eslint from v8 to v9 #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report❌ Patch coverage is
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. 🚀 New features to boost your workflow:
|
snitin315
left a comment
There was a problem hiding this 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
| * @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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * @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
| * @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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * @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
| * @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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * @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 |
There was a problem hiding this comment.
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
|
@ersachin3112 Can you look why the coverage is decreased? |
not sure, i have not added any additional code |
|
@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 |
This PR contains a:
Motivation / Use-Case
upgrade eslint from v8 to v9
Breaking Changes
No
Additional Info
No