oxc icon indicating copy to clipboard operation
oxc copied to clipboard

linter: Improve config generation for website to support string-based configs

Open connorshea opened this issue 2 months ago • 1 comments

There is no way currently to generate the config docs correctly for a rule like prefer_es6_class. In this case, there isn't a config object, but rather just a string value for the mode to run the rule in:

"react/prefer-es6-class": ["error", "always"]

Right now the auto-generated config doesn't really handle this pattern correctly and we need to update the website generation logic to allow this.

Other rules with this behavior that need this change:

connorshea avatar Oct 29 '25 23:10 connorshea

Doing this will involve modifying the code here, I believe. Not just that location, but that'll be part of it at least.

connorshea avatar Nov 08 '25 18:11 connorshea