question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[base/rules/es6.js] Why are all rules on error?

See original GitHub issue

Most of these rules need to be changed from error [2,... to warn [1, ...

https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/es6.js

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:12
  • Comments:28 (2 by maintainers)

github_iconTop GitHub Comments

43reactions
ljharbcommented, Apr 25, 2016

They are errors intentionally. Warnings are mostly useless, since they are easily ignored. If it’s not an error, it’s not enforced.

24reactions
jcalfeecommented, Apr 25, 2016

Ok, but I think your mixing personal problems with your software… If users want to have a policy of no warnings they can do that. Your project would be more useful if it benefited from the warning feature.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error - JavaScript - MDN Web Docs - Mozilla
Error objects are thrown when runtime errors occur. The Error object can also be used as a base object for user-defined exceptions.
Read more >
Why do I have parsing error with eslint-ejs plugin on simple ...
I have the error : error Parsing error: Unexpected token on the first ... /eslint-config-airbnb-base/rules/es6.js +86ms eslint:config-file ...
Read more >
Rules - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
eslint-plugin-jsdoc - npm
`.eslintrc.js` { rules: { 'jsdoc/require-example': [ // The Error level should be `error`, `warn`, or `off` (or 2, 1, or 0) 'error', ...
Read more >
JavaScript Errors Try Catch Throw - W3Schools
While using W3Schools, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 1999-2022 by Refsnes Data....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found