-
Task
-
Resolution: Fixed
-
L3 - Default
-
None
-
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