Configure coding style rules
Decide on a basic, initial set of JavaScript coding style rules and set up ESLint to enforce them.
This is a combined task since the built-in ESLint rules will help to drive the discussion about which rules to select. These rules are expected to evolve over time, so the focus should be on the common style rules that are encountered daily / immediately. Add any necessary configuration related to coding style to the .editorconfig file to inform the text editor / IDE how to format the code.
Acceptance criteria:
-
Add the library (or libraries) needed to enforce coding style rules -
Add StandardJS -
Add prettier
-
-
Add an .eslintrc rule file that tunes coding style rules -
Add an .editorconfig file that provides formatting hints to the text editor / IDE -
Add a task to the build that enforces the coding style rules when the project is built; the built should fail if there are violations -
Document the coding style policy in contributing.adoc (namely that a MR cannot have any violations)