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-underscore-dangle rule is either broken or the documentation is wrong

See original GitHub issue

What version of ESLint are you using? 3.4.0

What parser (default, Babel-ESLint, etc.) are you using? babel-eslint

Please show your full configuration: https://gist.github.com/krainboltgreene/a8e6ae9c76869a75b087317c4b5882c2

What did you do? Please include the actual source code causing the issue. Wrote:

const __foo = 1

What did you expect to happen?

No linting errors.

What actually happened? Please include the actual, raw output from ESLint.

screen shot 2016-09-05 at 9 55 33 pm

Tried it in the demo tool, works fine. Nothing in the actual source of the rule suggests it would work with the documentation provided (IE making sure it’s two underscores).

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
krainboltgreenecommented, Sep 6, 2016

Yes @ljharb, I know all of that.

0reactions
albertocommented, Feb 18, 2017

Closing this issue as it looks like the question has been answered. Please feel free to visit us in the ESLint Gitter if you have any other issues!

Read more comments on GitHub >

github_iconTop Results From Across the Web

no-underscore-dangle - 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 Unexpected dangling '_' in '__place' no-underscore ...
My understanding about adding the line before the error code will disable the eslint no-underscore-dangle rule right? – irs102info. May 23, 2017 ...
Read more >
Low level issues - Embold Help Center
This rule enforces consistent spacing inside an open block token and the next token on the same line. This rule also enforces consistent...
Read more >
eslint-config-ariporad - npm
eslint: no-duplicate-imports > Why? Having multiple lines that import from the same path can make code harder to maintain. ```javascript // bad ......
Read more >
demo-outil-edition - node_modules - eslint - CHANGELOG.md
39dfe08 Update: false positives in function-call-argument-newline (fixes ... 4c5aaf3 Docs: Fix typo in no-underscore-dangle rule (#9567) ...
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