Skip to content

fix: remove duplicate "options" keys in .oxlintrc.json#37366

Open
chinesepowered wants to merge 2 commits into
anomalyco:devfrom
chinesepowered:fix/oxlintrc-duplicate-options
Open

fix: remove duplicate "options" keys in .oxlintrc.json#37366
chinesepowered wants to merge 2 commits into
anomalyco:devfrom
chinesepowered:fix/oxlintrc-duplicate-options

Conversation

@chinesepowered

@chinesepowered chinesepowered commented Jul 16, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #37365

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

.oxlintrc.json declared the top-level options key three times — all three identical ({ "typeAware": true }). JSON keeps only the last occurrence of a duplicate key, so the first two were dead weight and any schema-aware editor/formatter flags the duplicates. This PR removes the two redundant blocks and keeps a single options. The effective config oxlint sees is unchanged.

How did you verify your code works?

Stripped the // comments from the file and ran it through JSON.parse: it parses cleanly and now has exactly one options key with typeAware: true. git diff shows only the two duplicate blocks removed, nothing else.

Screenshots / recordings

N/A — not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Jul 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

Duplicate "options" key in .oxlintrc.json

1 participant