Closed Arcanemagus closed 8 years ago
There is also a bug with the following:
.jscsrc
:
{
"disallowPaddingNewlinesInBlocks": true,
"requirePaddingNewLineAfterVariableDeclaration": true
}
foo.js
:
let foo = 42;
function bar() {
let foobar = 42;
}
I'm assuming that the root cause is the same as this one since it requires the requirePaddingNewLineAfterVariableDeclaration
rule as well, but if you want this filed as a separate bug just let me know.
Duplicate of https://github.com/jscs-dev/node-jscs/issues/2244
When running
jscs
v3.0.3 against this file:foo.js
:With this configuration:
.jshintrc
:I get the following error in the output:
It seems the issue with
requirePaddingNewLineAfterVariableDeclaration
is causing the code issue reported bydisallowUnusedParams
to be reported on the wrong line:A folder with a minimal reproduction case is included here: linter-jscs_GH249-1.zip
If there is any further information you need just let me know.
Note that this was initially filed here.