[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [smarthome-dev] Proposal: JavaScript coding guidelines
|
Hi!
That tool also predefines some formatting rules. Either, the formatter settings from Eclipse are disabled or standardJS needs to be configured to follow those. I have no clue if the feature/rule-set can be unified. For Java for example, Eclipse can define formatting rules which other IDEs can not - the feature set is different.
Best Sebastian
Sebastian Janzen, sebastian.janzen @innoq .com, https:
innoQ Deutschland GmbH, Krischerstr. 100 , 40789 Monheim, Germany
Phone: + 49 2173 3366 0 Mobile: + 49 151 53542783 Fax: + 49 2173 3366 222
Hi Henning, is it able to add the code formatting rules that fits to "_javascript_ Standard Style" to the formatter used by the Eclipse IDE? Best regards, Markus 2017-04-26 15:17 GMT+02:00 Henning Treu < henning.treu@xxxxxxxxxxxxxx>: 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
_______________________________________________ smarthome-dev mailing list smarthome-dev@xxxxxxxxxxx To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/smarthome-dev
_______________________________________________ smarthome-dev mailing list smarthome-dev@xxxxxxxxxxxTo change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/smarthome-dev
|
Attachment:
smime.p7s
Description: S/MIME cryptographic signature