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

Forbid bracketless ifs

    XMLWordPrintable

Details

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

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce