Skip to content

Rule Idea: no-break, no-if, no-loops #54

Open
@kevinSuttle

Description

@kevinSuttle

https://hackernoon.com/rethinking-javascript-eliminate-the-switch-statement-for-better-code-5c81c044716d

"no-break": [true, {"ignore-switch": "true"}], // maybe continue is included here or a separate rule?
"no-if": "true", // or maybe "prefer-ternary"?
"no-loops": [
     true, 
     "while",
     "for",
      "do"
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixed in eslint portThis issue has been fixed in github.com/jonaskello/eslint-plugin-ts-immutablehelp wanted

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions