Skip to content

Check for keyword spacing in the front-end code

Remco de Man requested to merge fbl_eslint_keyword_spacing into dev

In the back-end, checkstyle is used to check code styling. Checkstyle enforces that there is spacing between the keywords, so after the keywords, there must be a space. For example, this is correct:

if (expression) {
    //do domething
}

This example is incorrect:

if(expression) {
    //do domething
}

In the front-end this was not enforced as first noticed by @lukas. This merge request enables ESLint's keyword-spacing rule with the same settings as used in the back-end checkstyle configuration. It also fixes all violations of the rule, which are automatically fixed by ESLint's --fix option.

Merge request reports

Loading