-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
False positive 'newline-after-var' with 'semi': never #6834
Comments
Thanks for reaching out, @wKich! To help us, could you please post the raw output from ESLint when it runs and produces the warning you described? |
Hi @wKich, thanks for the issue. It looks like there's not enough information for us to know how to help you. If you're reporting a bug, please be sure to include:
Requesting a new rule? Please see Proposing a New Rule for instructions. Requesting a rule change? Please see Proposing a Rule Change for instructions. If it's something else, please just provide as much additional information as possible. Thanks! |
@vitorbal, sorry for didn't post output right away. Here it is |
Thanks! I can confirm this as well, with the following config and test file: {
"root": true,
"rules": {
"semi": ["error", "never"],
"newline-after-var": ["error"]
}
}
var foo = bar
;(1 || 2).baz() Results in: $ npm run lint
> eslint_bug_tester@1.0.0 lint /Users/vitorbalocco/Workspace/eslint_bug_tester
> eslint src/
/Users/vitorbalocco/Workspace/eslint_bug_tester/src/test.js
1:1 error Expected blank line after variable declarations newline-after-var
✖ 1 problem (1 error, 0 warnings) |
I will work on this. |
What 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.
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
warningThe text was updated successfully, but these errors were encountered: