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.

no-undef rule can not work in latest eslint version

See original GitHub issue

What 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:closed
  • Created 7 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mysticateacommented, Jun 13, 2016

@yinhaibo01 #5358 is still opened. It would be solved in the next version (maybe 2.13.0), I hope. 😉

0reactions
yinhaibo01commented, Jun 13, 2016

Thank you for your reply, I will update the latest version.

Read more comments on GitHub >

github_iconTop 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 >

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