Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

no-unused-variable: ignore-pattern doesn't apply to imports #3186

Closed
brandf opened this issue Aug 30, 2017 · 1 comment
Closed

no-unused-variable: ignore-pattern doesn't apply to imports #3186

brandf opened this issue Aug 30, 2017 · 1 comment

Comments

@brandf
Copy link
Contributor

brandf commented Aug 30, 2017

Bug Report

  • TSLint version: ^5.6.0
  • TypeScript version: ^2.4.2
  • Running TSLint via: (pick one) CLI / Node.js API / VSCode / grunt-tslint / Atom / Visual Studio / etc
    webpack tslint-loadeder and CLI

TypeScript code being linted

import { UI } from '../../ui';

with tslint.json configuration:

"no-unused-variable": [true, {"ignore-pattern": "(^_+$)|(^UI$)"}]

Actual behavior

All imports are unused.

Expected behavior

No error because ignore-pattern matches 'UI'

@ajafff
Copy link
Contributor

ajafff commented Nov 5, 2017

Fixed by #3187

@ajafff ajafff closed this as completed Nov 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants