Rename linter groups #3017
Replies: 3 comments 9 replies
-
It's difficult for me to assess this proposal without seeing some concrete configuration use cases. For example, how would we support the use case where a user wants to use another linter for css, but rome for everything else? We should think about other use cases too and maybe write them down. Like user personas for rome. I do like the idea of having an a11 group because this isn't a concern of a single language. Groups like correctness seem to broad in my view. We would loose fine grained control. Would react rules fall in that group too? Does that mean they're enabled by default? |
Beta Was this translation helpful? Give feedback.
-
Does Rome need groups? Why not a flat hierarchy? If Rome starts with no groups, can groups be added later if they turn out to be a good idea? |
Beta Was this translation helpful? Give feedback.
-
UPDATE 9th of SeptemberHere's a proposal. Removal of groups that resemble languages, as they create confusion among users. The proposal takes inspiration from New groups
|
Beta Was this translation helpful? Give feedback.
-
Rome linter is designed to be cross language, which means that a rule should be able to work on different languages. An example are rules regarding
a11y
, where they work on JSX files and HTML files. If one day we will be able to supportvue
for example, these rules should for there as well. And so on.Unfortunately this concept doesn't seem to be clear to the most, probably because we are not communicating this enough. I also believe this is unclear, to the staff team too, because of how we name the groups of linter rules.
For example, we have two groups called
js
andts
, and many people think that the rules under thejs
group will work only on JavaScript files and might not work on other files.Then we have the group
regex
, which is not language related. And this causes more confusion.My proposal is to not use names that are related to a language, unless we know in advance that a group of rules will work only for a specific language (or better, a framework). Instead we should use broader categories, like concepts. I think this will help to better divide the origin of our rules. These concepts should also be documented in our website, which is something we don't do nowadays. Using a concept will help us to come up with a description of these groups.
The group
js
can be renamed tocorrectness
orbugs
.Rules under
jsx
should be moved undercorrectness
. Mostly because we know that we have plans to enabled JSX by default in our parser.Rules under
ts
should be renamed totypes
or something similar. Mostly because these rules will rule on TS file and declaration files.Beta Was this translation helpful? Give feedback.
All reactions