Consume @itwin/eslint-plugin 6.0.0, update linting, remove a pnpm override#342
Open
Consume @itwin/eslint-plugin 6.0.0, update linting, remove a pnpm override#342
Conversation
- Bump @itwin/eslint-plugin ^4.1.1 → ^6.0.0 and eslint ^8.57.1 → ^9.11.1 in all 5 packages
- Remove flat-cache>flatted pnpm override (no longer needed: eslint@9 brings flatted@3.4.2)
- Fix all lint errors introduced by v6 rule changes:
- Replace deprecated 'deprecation/deprecation' disable comments with '@typescript-eslint/no-deprecated'
- Update '@typescript-eslint/no-var-requires' disable comments to 'no-require-imports'
- Replace unused catch bindings (err/error) with bare catch {} blocks
- Add eslint-disable-next-line for no-non-null-assertion sites (per project policy)
- Fix prefer-promise-reject-errors violations
- Fix @itwin/require-version-in-deprecation: use '. ' separator, no 'x' in semver
- Remove stale/duplicate eslint-disable comments made unnecessary by v6
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow up from #341 (comment)
Dependency upgrades:
@itwin/eslint-pluginto version 6.0.0 andeslintto version 9.11.1 inpackages/browser/package.jsonandpackages/electron/package.json, ensuring all packages use the latest linting tools.Lint rule adjustments and code style:
deprecation/deprecationand@typescript-eslint/no-var-requires) with updated ones (@typescript-eslint/no-deprecatedand@typescript-eslint/no-require-imports) throughout the codebase for improved lint compatibility.@deprecated in 1.1.0.). We also have a custom lint rule in iTwin/eslint-plugin that is more strict on thiscatchblocks, leading to cleaner and more modern code.Other minor improvements:
flat-cache>flattedin the rootpackage.json.These changes collectively modernize the codebase’s linting setup and ensure compatibility with the latest standards.