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

Closed
JounQin opened this issue Aug 7, 2019 · 1 comment
Closed

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

JounQin opened this issue Aug 7, 2019 · 1 comment
Labels
package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin

Comments

@JounQin
Copy link
Contributor

JounQin commented Aug 7, 2019

Repro

{
    "rules": {
        "@typescript-eslint/no-type-alias": [
            2,
            {
                "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

Versions

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
@JounQin JounQin added package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin triage Waiting for maintainers to take a look labels Aug 7, 2019
@ankeetmaini
Copy link
Contributor

This is being worked on in #775

@JounQin JounQin closed this as completed Aug 7, 2019
@bradzacher bradzacher removed the triage Waiting for maintainers to take a look 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
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin
Projects
None yet
Development

No branches or pull requests

3 participants