Replace gts with oxlint and prettier for linting and formatting - #18
Merged
Conversation
Switch linting from gts to oxlint, and use prettier directly for formatting (which gts previously wrapped). This removes gts and its large transitive dependency tree, dropping installed packages from 258 to 32. - Add oxlint with an .oxlintrc.json (correctness=error, typescript no-explicit-any=warn, same dist/docs/test ignores as before) - Keep prettier for formatting; wire lint to `oxlint && prettier --check` and fix to `oxlint --fix && prettier --write` - Replace `gts clean` with `rm -rf dist docs` - Remove the eslint config files gts required (.eslintrc.json, eslint.config.js) - Drop the `tmp` override, which existed only to silence a vulnerability pulled in by gts's dependencies Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012EPKTmjdipnRRYjLLMbXXN
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.
Summary
This PR replaces the Google TypeScript Style (gts) linting and formatting setup with oxlint and prettier, providing faster linting and more flexible code formatting.
Key Changes
eslint.config.jsand.eslintrc.jsonfiles that configured gts.oxlintrc.jsonwith TypeScript, unicorn, and oxc plugins, maintaining the same rule fortypescript/no-explicit-anyas a warninglint: Changed fromgts linttooxlint && prettier --check srcfix: Changed fromgts fixtooxlint --fix && prettier --write srcclean: Changed fromgts cleantorm -rf dist docsgts(^7.0.0)oxlint(^1.73.0) andprettier(^3.9.5)overridessection with tmp dependencyImplementation Details
dist/,docs/, andtest/https://claude.ai/code/session_012EPKTmjdipnRRYjLLMbXXN