Skip to content

fix: tslint  #1844

Closed
Closed
@catull

Description

@catull
  1. OS
    OS X 10.11.6 (El Capitan), but it is platform-independent
  2. Versions.
    From master after issue chore(lint): lint ts as well as js #1823 was committed
  3. Repro steps.
    If "no-shadowed-variable": true is added to tsconfig.json's rules.
    Run npm run tslint
  4. The log given by the failure.
addon/ng2/utilities/get-dependent-files.ts[50, 13]: Shadowed variable: 'node'
addon/ng2/utilities/get-dependent-files.ts[51, 11]: Shadowed variable: 'node'
packages/ast-tools/src/node.ts[24, 43]: Shadowed variable: 'node'
packages/ast-tools/src/route-utils.spec.ts[465, 13]: Shadowed variable: 'editedFile'
packages/ast-tools/src/route-utils.spec.ts[497, 13]: Shadowed variable: 'editedFile'
  1. Mention any other details that might be useful.
    IMHO, shadowed variables are an invitation for subtle bugs to come see us and remain invisible.

I vote for non-shadowed variable to be true rather than false.

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