Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[no-type-alias] Rule fails with "Unhandled in union types are not allowed." when encountering null #2328

Closed
Labels
bugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin
@mdouglass

Description

@mdouglass

Repro

{"rules": {"@typescript-eslint/no-type-alias": ["error",      {"allowAliases":"always","allowCallbacks":"always","allowLiterals":"in-unions-and-intersections","allowMappedTypes":"always","allowTupleTypes":"always",      },    ]  }}
exporttypeValue=null|string|number

Expected Result
No errors

Actual Result
Unhandled in union types are not allowed.eslint@typescript-eslint/no-type-alias

Versions

packageversion
@typescript-eslint/eslint-plugin3.7.0
@typescript-eslint/parser3.7.0
TypeScript3.9.7
ESLint7.5.0
node14.6.0
npm6.14.6

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp