Skip to content

TS6133: 'args' is declared but never used. #325

Open

Description

@phil123456

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

Activity

  1. maxx0r commented on Mar 30, 2017

    @maxx0r
  2. phil123456 commented on Mar 30, 2017

    @phil123456
    Author

    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

  3. maxx0r commented on Mar 30, 2017

    @maxx0r
  4. phil123456 commented on Mar 30, 2017

    @phil123456
    Author

    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

  5. maxx0r commented on Mar 30, 2017

    @maxx0r

    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.

  6. phil123456 commented on Mar 30, 2017

    @phil123456
    Author

    ok, thanks
    nice seed so far ;-)

  7. GaryB432 commented on Mar 30, 2017

    @GaryB432
    Contributor

    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.

  8. phil123456 commented on Mar 31, 2017

    @phil123456
    Author

    nice, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions