Forbid bracketless ifs

XMLWordPrintable

    • Type: Task
    • Resolution: Fixed
    • Priority: L3 - Default
    • 2.5.0-alpha1, 2.5.0
    • Affects Version/s: None
    • Component/s: frontend
    • None

      We currently use bracketless ifs in some cases. I would like to forbid this as it reduces code readability and can introduce subtle bugs. This is a code-styling issue so I would like to automate this, however, prettier cannot do this as it would modify the AST, which prettier does not do.

      AT:

      • Add an eslint rule to forbid bracketless ifs
      • Automatically enforce this rule on commit

            Assignee:
            Unassigned
            Reporter:
            Sebastian Stamm
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: