Skip to content

fix(linter): accept boolean values in globals schema (close #24982) - #24983

Open
meteorlxy wants to merge 1 commit into
oxc-project:mainfrom
meteorlxy:fix-globals-type
Open

fix(linter): accept boolean values in globals schema (close #24982)#24983
meteorlxy wants to merge 1 commit into
oxc-project:mainfrom
meteorlxy:fix-globals-type

Conversation

@meteorlxy

Copy link
Copy Markdown

Fixes #24982

The GlobalValue deserializer already accepts boolean values, mapping true to writable and false to readonly. However, its generated JSON Schema only allowed the string values "readonly", "writable", and "off".

This PR:

  • updates the GlobalValue schema to also accept booleans
  • regenerates npm/oxlint/configuration_schema.json
  • updates the generated TypeScript configuration type to include boolean

@meteorlxy
meteorlxy requested a review from camc314 as a code owner July 27, 2026 13:15
@camc314 camc314 added the A-linter Area - Linter label Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-linter Area - Linter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

linter: typing of globals does not allow boolean value

2 participants