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
I tried to put my code in that seed, but I keep getting these although I set "no-unused-expression": false, in tslint.json (not sure this suffice or is related)
these errors are all over the place, I tried commenting and removing unused stuffs, but here in a pipe, I dont need to use args parameter
can you hint me how to sort this ? why does it stop compilation at all ?
On 30 Mar 2017 10:03, "phil123456" ***@***.***> wrote:
Hi,
I tried to put my code in that seed, but I keep getting these although I
set "no-unused-expression": false, in tslint.json (not sure this suffice or
is related)
these errors are all over the place, I tried commenting and removing
unused stuffs, but here in a pipe, I dont need to use args parameter
can you hint me how to sort this ? why does it stop compilation at all ?
thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#325>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/ACWx9uw01DOpkdMfN-_KeHglS59E11JHks5rq2GygaJpZM4Mt_-Z>
.
[42, 9]: if statements must be braced
[44, 9]: else statements must be braced
[50, 9]: if statements must be braced
[52, 9]: else statements must be braced
[26, 23]: " should be '
[26, 61]: " should be '
[5, 31]: Missing semicolon
[45, 40]: Missing semicolon
in chrome console, I think it's a nice feature, but is there no way to disable some of these ?
like having to put ' instead of " is really not my cup of tea and I am not sure it is really necessary
The noUnusedLocals and noUnusedParameters rules are not in tslint anymore but are now part of the TypeScript transpiler itself, both are set to true in tsconfig.json. You can prefix the name of an unused arg with an underscore to exempt it from the rule.
Activity
maxx0r commentedon Mar 30, 2017
phil123456 commentedon Mar 30, 2017
I commented the args, but I dont like that, they are default pie transform args, thought it would be better to leave them in case I want to use them
no there is no no-unused-var setting, I'll give it a try
actually it would be better to leave that on and ignore some cases
maxx0r commentedon Mar 30, 2017
phil123456 commentedon Mar 30, 2017
I tried tslint ignore with no luck
btw I get tons of
[42, 9]: if statements must be braced
[44, 9]: else statements must be braced
[50, 9]: if statements must be braced
[52, 9]: else statements must be braced
[26, 23]: " should be '
[26, 61]: " should be '
[5, 31]: Missing semicolon
[45, 40]: Missing semicolon
in chrome console, I think it's a nice feature, but is there no way to disable some of these ?
like having to put ' instead of " is really not my cup of tea and I am not sure it is really necessary
maxx0r commentedon Mar 30, 2017
Thats all configurable in the TSHint json file. That's no issue from this starter
On a personal note, it's better to follow the conventions in the long run.
phil123456 commentedon Mar 30, 2017
ok, thanks
nice seed so far ;-)
GaryB432 commentedon Mar 30, 2017
The
noUnusedLocalsandnoUnusedParametersrules are not in tslint anymore but are now part of the TypeScript transpiler itself, both are set to true intsconfig.json. You can prefix the name of an unused arg with an underscore to exempt it from the rule.phil123456 commentedon Mar 31, 2017
nice, thanks