-
-
Notifications
You must be signed in to change notification settings - Fork 244
Distinguish between formatting and code-quality rules #736
Comments
Agreed that separating the rules into categories would make the list easier to grok. I think we should group them by the categories in their metadata (similar to https://eslint.org/rules), which should be a fairly simple task! |
Category in the metadata (https://eslint.org/docs/rules/) is good, but the main idea of this issue is to be able to select all code-quality rules with one click and download the config file withouth reading of metadata of all 100+ rules. |
I'd like to separate the rules into just three headings: errors, suggestions, and style. Those are already encoded in the rule meta data and I think makes more sense that the category headings we have now. |
@nzakas, great idea, I would also add separation to current (supported) and deprecated rules. |
Yeah, I think we’d keep deprecated rules as-is, one list of all of them. |
The key idea is to be able to unselect all deprecated rules with one click to not include them into a config. |
The version of ESLint you are using.
7.2.0
The problem you want to solve.
Following the issue eslint/eslint#13348, currently Rules Configuration tool contains a long mixed list of rules, which contains both formatting and code-quality rules all together.
Your take on the correct solution to problem.
It's better to separate these rules into two categories:
This will simplify the rules management and housekeeping, and will allow easily to delegate code-quality linting to ESLint and rely on Prettier for formatting tasks.
Are you willing to submit a pull request to implement this change?
No.
The text was updated successfully, but these errors were encountered: