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

Forbid bracketless ifs

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 2.5.0-alpha1, 2.5.0
    • None
    • 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

        This is the controller panel for Smart Panels app

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

                Created:
                Updated:
                Resolved: