Repository navigation
build(srcts): Lint with eslint 10 + typescript-eslint, format with prettier 3 - #151
Merged
schloerke merged 2 commits intoOct 20, 2026
Conversation
schloerke
added this pull request to stack #153
October 20, 2026 17:31
schloerke
force-pushed
the
schloerke/typescript-eslint-prettier
branch
from
October 20, 2026 17:53
a789921 to
2e1e968
Compare
… prettier 3 Replace babel-eslint and the flowtype plugin with a flat eslint.config.mjs that keeps the old rules. prefer-const and no-this-alias stay off to match the existing code. Lint is back in `npm run build`, `watch`, and the commit hook. prettier 3 reformats srcts/: `function (` spacing and `;` between type members. No code changes.
tseslint.config() is deprecated in favor of eslint's own defineConfig(). lint-all and fix-all now pass the srcts folder to eslint and prettier instead of shell globs, which only reached one folder deep.
schloerke
force-pushed
the
schloerke/typescript-eslint-prettier
branch
from
October 20, 2026 18:07
2e1e968 to
1273480
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.
Replaces eslint 5 with eslint 10 + typescript-eslint (flat
eslint.config.mjs, using eslint'sdefineConfig()), and moves prettier from 1 to 3. Lint is back innpm run build,watch, and the commit hook.lint-allandfix-allnow pass thesrctsfolder instead of shell globs that only reached one folder deep.The old rules are kept (
eqeqeq,guard-for-in,no-console,no-var,consistent-return, unused vars withargs: "none").prefer-const,no-this-alias, andno-explicit-anyare off to match the existing code; turningprefer-conston would rewrite about 250 lines. Real findings fixed: two unused type imports, aFunctiontype, and a staleeslint-disablecomment.The rest of the
srcts/diff is prettier 3 formatting only (function (spacing and;between type members).reactlog.jsis byte-identical; only the source map changed.