This repository has been archived by the owner on Mar 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 515
requireVarDeclFirst error when comment in function expression #2022
Labels
Comments
/cc @Oredi |
btw, @galvarez421 you are welcome to try to fix it yourself, might be faster that way |
Hello,
I believe we should also have a similar check for the previousNode, @markelog ? |
Don't know, it could be |
kepta
added a commit
to kepta/node-jscs
that referenced
this issue
Jan 10, 2016
In this edge case the comments from previous block scope were being taken and a false positive error was thrown Fixes jscs-dev#2022 - issue
kepta
added a commit
to kepta/node-jscs
that referenced
this issue
Jan 10, 2016
In this edge case the comments from previous block scope were being taken and a false positive error was thrown Fixes jscs-dev#2022 - issue
kepta
added a commit
to kepta/node-jscs
that referenced
this issue
Jan 10, 2016
In this edge case the comments from previous block scope were being taken and a false positive error was thrown Fixes jscs-dev#2022 - issue
kepta
added a commit
to kepta/node-jscs
that referenced
this issue
Jan 10, 2016
In this edge case the comments from previous block scope were being taken and a false positive error was thrown Fixes jscs-dev#2022 - issue
hzoo
pushed a commit
to hzoo/node-jscs
that referenced
this issue
Jan 27, 2016
In this edge case the comments from previous block scope were being taken and a false positive error was thrown Fixes jscs-dev#2022 Closes jscs-devgh-2061
hzoo
pushed a commit
to hzoo/node-jscs
that referenced
this issue
Jan 27, 2016
In this edge case the comments from previous block scope were being taken and a false positive error was thrown Fixes jscs-dev#2022 Closes jscs-devgh-2061
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Rule that has issue: "requireVarDeclFirst: true"
Code that will make jscs exhibit the issue:
.jscsrc file:
test.js
node command:
The task will report an error for the line with the second assignment, but if I remove the comment in the function expression, the error goes away.
Using jscs 2.7.0
Operating system: Windows 7 64-bit
The text was updated successfully, but these errors were encountered: