You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.
I'm not experienced with tslinter implementations so I don't know if this information helps:
I found out that the function onNode (file: dist/rules/terNewlineAfterVarRule.js) is called only once with node.kind === ts.SyntaxKind.VariableStatement => true for the outer const.
Thanks for the help!
The text was updated successfully, but these errors were encountered:
webschik
added a commit
to webschik/tslint-eslint-rules
that referenced
this issue
Dec 16, 2018
Used versions
TSC: 3.0.3
tslint: 5.11.0
tslint-reslint-rules: 5.4.0
Used tslint.json
Linted code
Actual behavior
No linter error
Note: Same behavior when I change the arrow function to just function:
const myFunc = function() {...}
Expected behavior
The linter error "Expected blank line after variable declarations."
Analysis
If I change the
const myFunc
to a real function, the linter sees the problem:I'm not experienced with tslinter implementations so I don't know if this information helps:
I found out that the function
onNode
(file: dist/rules/terNewlineAfterVarRule.js) is called only once withnode.kind === ts.SyntaxKind.VariableStatement => true
for the outerconst
.Thanks for the help!
The text was updated successfully, but these errors were encountered: