Skip to content

[no-unused-vars] ignores local tokens (type,interface) #1062

Closed
@Hotell

Description

@Hotell

Repro

{
  "rules": {
    "no-unused-vars": "off",
    "@typescript-eslint/no-unused-vars": "warn"
  }
}
// Expect Warning ✅
import { SomeType } from './types'

// Expect Warning ❌
interface ImNotUsed { }
// Expect Warning ❌
type NotUsedAsWell = unknown

type Empty = void

export const dummy = (): Empty => { console.log('dummy') }

Expected Result

local tokens ImNotUsed, NotUsedAsWell marked as unused

Actual Result

ImNotUsed, NotUsedAsWell is ignored

Additional Info

Versions

package version
@typescript-eslint/eslint-plugin 2.2.0
@typescript-eslint/parser 2.2.0
TypeScript 3.6.4
ESLint 6.3
node 10
npm X.Y.Z

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghas prthere is a PR raised to close thispackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions