Closed doneykoo closed 4 years ago
What happens when you run tslint from the command line?
What happens when you run tslint from the command line?
got the resutl:
EventDelegate.ts[29, 9]: parameters are not aligned
Is that what you expect?
nope.
It would be better to have a separate align option only for that continuous line of function parameters.
Ok, this sounds like a tslint issue or feature request then. Please file this against the main tslint repo
got it. thanks
(before all, sorry I'm not sure if this issue is from this plugin, or maybe the foundemental lint library. Forgive me and change this issue properly if I'm wrong)
For now the lint
align
checking has trouble for me in such situation:In such situation, I want this kind of indent can be accepted:
This style is also consistent with how the VSCode auto format works when you insert line-break by hit enter key in the middle of that function delcare.
However the current lint system checks as it has to be:
And, if I want to ignore such situation, there is only one
align
option intslint.json
. If I set it tofalse
, it will also ignore the align issues of the normal line of code (as shown in snapshot noted "(1)"), which is not what I wanted.snapshot:![图片](https://user-images.githubusercontent.com/1118771/63487750-fd1f9500-c4de-11e9-9ceb-53854ce8777e.png)