Skip to content

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

@connorshea

Description

@connorshea

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions