chore: migrate from TSLint to ESLint#6313
Draft
Pyatakov wants to merge 2 commits into
Draft
Conversation
Test Results 32 files ±0 64 suites ±0 4m 2s ⏱️ -17s For more details on these failures, see this check. Results for commit 6b2374f. ± Comparison against base commit 1bf07ac. ♻️ This comment has been updated with latest results. |
Replace end-of-life TSLint with ESLint 10 using a single flat config at the repo root (eslint.config.mjs). Rules are ported from tslint.json to keep coverage equivalent (quotes, eqeqeq, curly, no-bitwise, no-shadow, unused vars, kebab-case filenames, etc.); formatting is handled by @Stylistic rather than Prettier. - Remove tslint.json files, tslint dependencies, and per-package lint scripts; add root lint and lint:fix scripts. - Replace the per-package CI lint loop with a single yarn lint step. - Ignore packages not previously enforced in CI and test files, to be cleaned up and re-enabled incrementally. Signed-off-by: Alex Piatakov <alex.piatakov@swirldslabs.com>
- Apply ESLint auto-fixes in the enabled packages (quotes, dot notation, object shorthand). - Baseline the remaining violations in eslint-suppressions.json so the build passes on current code while failing on any new violation. Signed-off-by: Alex Piatakov <alex.piatakov@swirldslabs.com>
97ce3bc to
6b2374f
Compare
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.
Description
eslint.config.mjs).eqeqeq,curly,no-bitwise,no-shadow, unused variables, kebab-case filenames, and more). Formatting is enforced through@stylisticrather than Prettier, so no mass reformat is needed.tslint.jsonfiles, thetslint/tslint-config-standarddependencies, and the per-packagelintscripts; add rootlintandlint:fixscripts.yarn lintstep.eslint-suppressions.jsonso the build passes on current code while failing on any newly introduced violation.TODO(eslint-migration)markers).