Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-2141

Forbid bracketless ifs

    XMLWordPrintable

    Details

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

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: