no-underscore-dangle rule is either broken or the documentation is wrong
See original GitHub issueWhat 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](https://cloud.githubusercontent.com/assets/334809/18262128/7d432f6a-73b3-11e6-997e-039e92860215.png)
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:
- Created 7 years ago
- Comments:13 (9 by maintainers)
Top 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 >
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 Free
Top 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
Yes @ljharb, I know all of that.
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!