Default Severity
See original GitHub issueThe version of ESLint you are using. 7.28.0
The problem you want to solve.
Now both real code errors and ESLint errors appear at the same level in IDEs with red squiggles.
I can see an option to change all error severity to warn.
It would be nice to have yellow squiggles on ESLint ones (Now we have to manually list every rule and change its severity to warn
)
Your take on the correct solution to the problem.
{
severity: 'warn',
...
}
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:36 (25 by maintainers)
Top Results From Across the Web
Credit Risk - Default Probability - Loss Severity | CFA Level 1
The credit risk is the risk of loss resulting from a borrower's (debt issuer) failure to make full and timely payments of interest...
Read more >Subject 1. Credit Risk - Analyst Notes
Default probability addresses the likelihood that a borrower will default on its debt obligations, without reference to estimated loss. Loss severity, also ...
Read more >Configure Your Default Severity Base (Nessus) - Docs Tenable
Configure Your Default Severity Base · In the top navigation bar, click Settings. The About page appears. · In the left navigation bar,...
Read more >Loss Severity on Residential Mortgages - Urban Institute
For loans that liquidate, we determine the loss severity measured by the percentage of unpaid principal balance lost at the time of default....
Read more >How do I change the default severity for tickets?
... list found under Admin -> Custom Properties Tab and then by selecting 'Ticket Severity' from... ... The default will be the first...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If the goal is to differentiate errors coming from ESLint and those from other sources in IDEs, that sounds like something IDE-ESLint integrations should do.
vscode-eslint provides this feature with
eslint.rules.customizations
option:Just trying to make sure I understand this proposal. I’m assuming the current proposal is:
'some-cool-rule': 'default'
defaultSeverity: 'error'
/defaultSeverity: 'warn'
to choose the severity of any rule that specifiesdefault
So far, I have the following concerns:
default
instead oferror
/warn
? This proposal seems like it’s solving the problem by pushing work onto all of the thousands of shareable ESLint configs, instead of the alternative solution of just letting the individual end-user apply severity overrides when needed.default
is appropriate to use vs. more specific settings likeerror
/warn
? Seems like there would inevitably be disputes here, as some config owners would still want to choose specific severities, but some end-users might want them to specifydefault
.default
? Seems like we would still need to have the severity override solution given that we’d never get to full adoption ofdefault
anyway.default
for everything, then that potentially conveys less information than today where config owners can useerror
/warn
to distinguish stronger vs. weaker rule suggestions. Not the end of the world, but it’s another downside to the severity override solution where end-users could overrideerror
/warn
rules differently.So a severity override solution that end-users could configure as needed makes much more sense to me at this point than an ecosystem-wide
default
severity migration.