False positive 'newline-after-var' with 'semi': never
See original GitHub issueWhat version of ESLint are you using? 3.2.2
What parser (default, Babel-ESLint, etc.) are you using? babel-eslint
Please show your full configuration: https://github.com/wKich/eslint-config-skbkontur-keforms
What did you do? Please include the actual source code causing the issue.
const foo = {}
;(foo.bar || []).doSomething()
What did you expect to happen? Don’t get any warnings or errors.
What actually happened? Please include the actual, raw output from ESLint.
Get newline-after-var
warning
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
newline-after-var - 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-config-canonical - npm
Rule CN AB GG SD XO
@babel/new‑cap ❌ 👻 👻 👻 👻
@babel/no‑invalid‑this 🚨 👻 👻 👻 👻
@babel/no‑unused‑expressions 🚨 👻 👻 👻 👻
Read more >typescript-eslint/no-unused-vars does not work correctly
After @typescript-eslint upgrade es-lint started throwing the following lint errors: 28:15 error 'token' is defined but never used ...
Read more >6. Iteration — How to Think Like a Computer Scientist
Notice that if the condition is false the first time through the loop, the statements inside the loop are never executed. The body...
Read more >eslint-plugin-jsdoc - npm Package Health Analysis - Snyk
We found that eslint-plugin-jsdoc demonstrates a positive version release ... Recommended "jsdoc/newline-after-description": 1, ... Defaults to false .
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
I will work on this.
Thanks! I can confirm this as well, with the following config and test file:
Results in: