Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[no-type-alias] false positiveΒ #3321

@artola

Description

@artola
  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have read the FAQ and my problem is not listed.

Repro

{
  "rules": {
    "@typescript-eslint/no-type-alias": ["error", {"allowAliases": "always"}]
  }
}
type Foo = typeof import('foo');

Expected Result

Actual Result

[@typescript-eslint/no-type-alias] Type unhandled are not allowed.ts(30010)

Additional Info

Versions

package version
@typescript-eslint/eslint-plugin 4.22.0
@typescript-eslint/parser 4.22.0
TypeScript 4.0.5
ESLint 7.24.0
node 12.19.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpackage: 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