Skip to content

oxlint: configure oxc rules - #4153

Merged
nstepien merged 1 commit into
mainfrom
oxrules
Aug 26, 2026
Merged

nstepien merged 1 commit into
mainfrom
oxrules

Conversation

@nstepien nstepien changed the title configure oxc rules oxlint: configure oxc rules Aug 26, 2026
@nstepien
nstepien marked this pull request as ready for review August 26, 2026 19:25
@nstepien
nstepien requested a review from amanmahajan7 as a code owner August 26, 2026 19:25
Comment thread .oxlintrc.json
Comment on lines +243 to +269
"oxc/approx-constant": "warn",
"oxc/bad-array-method-on-arguments": "warn",
"oxc/bad-bitwise-operator": "warn",
"oxc/bad-char-at-comparison": "warn",
"oxc/bad-comparison-sequence": "warn",
"oxc/bad-match-all-arg": "warn",
"oxc/bad-min-max-func": "warn",
"oxc/bad-object-literal-comparison": "warn",
"oxc/bad-replace-all-arg": "warn",
"oxc/branches-sharing-code": "warn",
"oxc/const-comparisons": "warn",
"oxc/double-comparisons": "warn",
"oxc/erasing-op": "warn",
"oxc/misrefactored-assign-op": "warn",
"oxc/missing-throw": "warn",
"oxc/no-accumulating-spread": "warn",
"oxc/no-async-await": "off",
"oxc/no-async-endpoint-handlers": "warn",
"oxc/no-barrel-file": "warn",
"oxc/no-const-enum": "warn",
"oxc/no-map-spread": "off",
"oxc/no-optional-chaining": "off",
"oxc/no-rest-spread-properties": "off",
"oxc/no-this-in-exported-function": "warn",
"oxc/number-arg-out-of-range": "warn",
"oxc/only-used-in-recursion": "warn",
"oxc/uninvoked-array-callback": "warn",

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Worth enabling?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems safe enough to me

stacked auto-merge was automatically disabled August 26, 2026 23:18

Pull Request is not mergeable

Base automatically changed from migrate-to-oxlint to main August 26, 2026 23:19
@nstepien
nstepien merged commit a6e576d into main Aug 26, 2026
2 checks passed
@nstepien
nstepien deleted the oxrules branch August 26, 2026 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants