You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ eslint a.js
/home/user/a.js
1:7 error The variable `opts` should be named `options`. A more descriptive name will do too unicorn/prevent-abbreviations
✖ 1 problem (1 error, 0 warnings)
1 error and 0 warnings potentially fixable with the `--fix` option.
Reading up the comment, it seems that the reason was to prevent reporting environment variables, since they are almost always uppercase, and user might not decide on them considering they come from the calling process.
This makes sense.
However, it's too bad because some users (like me) like to name constants with uppercase letters. Those variables cannot be linted. Is there a way this could be done without getting issues with environment variables?
a.js
:b.js
:b.js
does not report any error but it should.Configuration
.eslintrc.json
:Environment
The text was updated successfully, but these errors were encountered: