Skip to content

Check for nested ternary statements #36

Open
@jbrooksuk

Description

@jbrooksuk

Being able to warn about nested ternary statements would be useful.

For example:

(1 === TRUE ? "Yay" : "Nay")

Would be fine, however:

(1 === TRUE ? ( 0 === FALSE ? "Foo" : "Bar" ) : "Nay")

Should report a warning that too many ternary statements are nested.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions