Commit Graph

8 Commits

Author SHA1 Message Date
bab f272594e61 fix(linter/plugins): align RuleMeta.replacedBy type with ESLint (#21544)
Closes #21539

---------

Co-authored-by: Cameron <cameron.clark@hey.com>
2026-04-20 17:17:51 +01:00
overlookmotel 4bc84b1bc5 fix(linter/plugins): allow null and undefined for rule.meta.fixable (#20008)
While working on #20009, discovered than many of ESLint's built-in rules define `rule.meta.fixable` as `null`.

Since this is clearly an established pattern, correct TS types to accept `null`. Also accept `undefined`, as we do pretty much everywhere else that we accept `undefined`.

Both `null` and `undefined` were already handled at runtime. This just makes that support "official" in the TS types.
2026-03-04 22:00:41 +00:00
overlookmotel 6b32cc8dc9 refactor(linter/plugins): correct outdated comments (#18948)
Just update 1 outdated TODO comment, and delete another.
2026-02-04 15:10:15 +00:00
overlookmotel f3d439ff42 refactor(linter/plugins): move RuleOptionsSchema type into options.ts (#16901)
Pure refactor. Move the type def for `RuleOptionsSchema` into `options.ts`, which is a more appropriate place for it.
2025-12-15 13:06:01 +00:00
overlookmotel 86fa66785e fix(linter/plugins): improve type def for RuleMeta defaultOptions property (#16159)
Constrain `RuleMeta`'s `defaultOptions` property to be `JSON.stringify`-able data.
2025-11-26 12:23:27 +00:00
Boshen 523a30a016 style(all): apply oxfmt default options (#16091)
Embrace the defaults!

---------

Co-authored-by: Yuji Sugiura <y.sugiura.0316@gmail.com>
2025-11-25 15:56:24 +09:00
overlookmotel a210b12de9 docs(linter/plugins): improve JSDoc comment for RuleOptionsSchema (#15642)
Small improvement to docs. Explain what `false` means for `rule.meta.schema`.
2025-11-12 17:57:35 +00:00
overlookmotel 257360f94e fix(linter/plugins): fill in TS type def for RuleMeta (#15629)
Fill out the TS type def for `RuleMeta`, based on [ESLint's docs](https://eslint.org/docs/latest/extend/custom-rules).

Most of the properties can be ignored at runtime in Oxlint (they're primarily useful for generating docs), but this has also surfaced a few features we need to implement. These are marked with "TODO" comments, and I'll also open issues for them shortly.
2025-11-12 13:22:14 +00:00