Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[smarthome-dev] Proposal: JavaScript coding guidelines

Hi list,

currently the _javascript_ in PaperUI does not follow specific code style conventions. At least there is no project guidelines defining them and no tool support to enforce them. The BasicUI does define linter rules and linting is part of the grunt build process.
For PaperUI I propose to use a predefined set for code style which is known as standardjs. The documentation for standardjs can be found here: https://standardjs.com/
It is not only a set of rules but comes with tool support in form of the "standard" command. This will report style mismatch and give developers the opportunity to auto-format their code.
Please let me know what you think about this approach in general and the code styles defined by standardjs in particular.

Cheers.
Henning



Back to the top