Skip to content

Create groups in ESLint plugin #200

@matejchalk

Description

@matejchalk

As user, I would like to have an easier way to connect ESLint audits to categories than one-by-one.

There are couple of ways we can automatically group lint rules based on some their metadata:

  • ESLint rules may have a meta.type of type 'problem' | 'suggestion' | 'layout' (not every ESLint plugin uses it, but many do)
    • we can automatically create problems, suggestions and layout groups from these
  • some ESLint plugins take advantage of meta.docs.category, although this is deprecated and can be any string, so it'll likely only apply to rules within a specific plugin
    • we can automatically create groups like functional-no-mutations and functional-no-other-paradigms (example for eslint-plugin-functional), which could also be useful in some cases

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions