no-undef rule can not work in latest eslint version
See original GitHub issueWhat version are you using? 2.4.0 What did you do? run eslint with recommand rule. What happened? Can not check the no-undef error. What did you expect to happen? I have install the eslint 1.10.3 in another PC, the no-undef error will throw. But in latest eslint, this error has been ignored. I expect this error should be checked in latest version.
the test javascript content is this:
var arr = [0, 1, 2, 3, 4];
length = arr.length;
the config file is this:
{
"env": {
"browser": true,
"node": true
},
"settings": {
},
"extends": "eslint:recommended",
}
check result is different between eslint@2.11.1 and eslint@1.10.3
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
no-undef - ESLint - Pluggable JavaScript Linter
This rule can help you locate potential ReferenceErrors resulting from misspellings of variable and parameter names, or accidental implicit globals (for ...
Read more >ESLint: Defined global extensions still not defined (no-undef)
The issue that I'm having is ESLink flags it as "no-undef"; despite the fact that it is available at run-time. Disabling the rule...
Read more >ESLint - npm
Latest version : 8.30.0, last published: 12 days ago. ... ESLint is completely pluggable, every single rule is a plugin and you can...
Read more >How to use ESLint with TypeScript | Khalil Stemmler
ESLint is a JavaScript linter that you can use to lint either ... In .eslintrc , add a new attribute to the json...
Read more >1782491 - Enable "no-undef" ESLint rule for self-hosted code
Misspelled variable names in self-hosted code currently lead to assertion errors, but only when the relevant code is actually executed. We can improve...
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
@yinhaibo01 #5358 is still opened. It would be solved in the next version (maybe 2.13.0), I hope. 😉
Thank you for your reply, I will update the latest version.