style(linter/plugins): subtract 1 -> decrement operator#16029
Merged
overlookmotel merged 2 commits intooxc-project:mainfrom Nov 24, 2025
Merged
style(linter/plugins): subtract 1 -> decrement operator#16029overlookmotel merged 2 commits intooxc-project:mainfrom
overlookmotel merged 2 commits intooxc-project:mainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR applies a stylistic consistency change to use the decrement operator (--) instead of the compound assignment operator (-= 1) in the tokens module. The changes align with the existing coding style used throughout the TypeScript codebase.
- All instances of
-= 1are replaced with--for consistency - No functional changes are introduced—the operations remain semantically identical
- The changes improve code brevity and consistency with the rest of the codebase
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
f408121 to
de91e0b
Compare
de91e0b to
778ce80
Compare
overlookmotel
approved these changes
Nov 24, 2025
taearls
pushed a commit
to taearls/oxc
that referenced
this pull request
Dec 11, 2025
…16029) - Trying to get the simpler stylistic and consistency edits out of the way. - Originally added in oxc-project#16002 and oxc-project#15956.
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.
SourceCode#getFirstToken()#16002 and feat(linter/plugins): implementSourceCode#getTokenBefore()#15956.