Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[no-type-alias] incompatible with `readonly` #813

JounQin opened this issue Aug 7, 2019 · 1 comment

[no-type-alias] incompatible with `readonly` #813

JounQin opened this issue Aug 7, 2019 · 1 comment


Copy link

@JounQin JounQin commented Aug 7, 2019


    "rules": {
        "@typescript-eslint/no-type-alias": [
                "allowAliases": "in-unions-and-intersections",
                "allowCallbacks": "always",
                "allowLiterals": "in-unions-and-intersections",
                "allowMappedTypes": "always"
// your repro code case
export type Arrayable<T> = T[] | readonly T[]

Expected Result
No report

Actual Result

✘  @typescript-eslint/no-type-alias

   Unhandled in union types are not allowed

Additional Info


package version
@typescript-eslint/eslint-plugin 2.0.0-alpha.4
@typescript-eslint/parser 2.0.0-alpha.4
TypeScript 3.5.3
ESLint 6.1.0
node v12.7.0
npm 6.10.2

This comment has been minimized.

Copy link

@ankeetmaini ankeetmaini commented Aug 7, 2019

This is being worked on in #775

@JounQin JounQin closed this Aug 7, 2019
@bradzacher bradzacher removed the triage label Aug 7, 2019
@bradzacher bradzacher changed the title [no-type-alias] <issue title> incompatible with `readonly` [no-type-alias] incompatible with `readonly` Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.