DEV: enforces eslint’s curly rule to the codebase (PR #10720)

eslint --fix is capable of fix it automatically for you, ensure prettier is run after eslint as eslint --fix could leave the code in an invalid prettier state.

GitHub