-
Notifications
You must be signed in to change notification settings - Fork 659
Promote nursery rules for 12.1.0 #4431
Conversation
✅ Deploy Preview for docs-rometools ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
Thank you for looking after this! Here's some feedback/questions:
|
It is the reason I promoted Although the TypeScript devs do not recommend
I could wait until we land an alternative rule.
In light of your previous comments (about accessibility), the rule seems ready. |
That's the thing I don't understand. Let's suppose I enable both rules (let's forget about recommended sets for a moment):
I think it will become a poor DX from our end, to be honest. I don't know how's going to be the DX for ESLint, but here feels wrong. Am I overreacting? It's fine if I am 😅 |
@ematipico Do you think we should remove |
Both are triggered. Once we change
I am not familiar with the intent of these rules, and unfortunately, I don't know how's the DX of TS ESLint. From a point of view of a newbie, I would only recommend the rule that requests to change |
I could make the same move, since |
I will also apply the following renaming if you agree:
|
Yeah, they definitely make sense! Sorry I forgot to mention it |
Summary
This PR promotes lint rules that were previously released in a stable version.
Promoted rules
A11y
Compelxity
I promoted the following rules because
noExtraBooleanCast
andnoUselessFragments
are part of compelxity:noExtraLabels
should certainly be renamed tonoUselessLabel
?I could rename
noExtraSemicolons
tonoExtraSemicolon
(without s because ofnoExtraBooleanCast
).noUselessSemicolon
seems ambiguous because someone could argue that most of semicolons are useless.I also promoted the following rule:
Correctness
I promoted the following rules that highlight errors:
Note:
noGlobalObjectCalls
should certainly be moved tosemantic_analyzers
. However, I got an error when I moved the rule.I promoted the following rules because
noUnusedVariables
is part of correctness:I also promoted the following rules because they prevent the access to undefined variables:
Style
Suspicious
I promoted the following rules, because
noDuplicate*
are part of suspicious:I promoted the following rules that highlight possible errors:
I also promoted the following rule in the group because
module x {}
is close to deprecation:Non-promoted rules
The following rules are still a WIP:
I did not promote the following rules because I think they should be reworked in order to use the semantic model:
I did not promote the following rule because it should certainly be replaced in the future:
Other changes
I updated the version of new rules to version 12.1.0.
Test Plan
Updated
Changelog
Documentation
Updated.