Let's collect some arguments whether we should enforce a style guide like the Polymer one onto our elements.
/**
* Applies awesomeness to `element`.
*
* @param {HTMLElement} element The element to be made awesome.
* @param {number} level The numeric level of awesomeness. A value
* between `1` and `11`.
* @param {Array<HTMLElements>=} refs Optional referenced elements
* that become awesome by proxy.
* @return {number} The cumulative level of awesomeness.
*/
Here is an initial list of arguments - please add your opinions!
Pro:
allows to create a nice documentation (params, events, ...)
needed for the designer (?)
enforce documented components
Contra:
makes it hard to use Vanilla web components or different frameworks to create a BioJS element
Let's collect some arguments whether we should enforce a style guide like the Polymer one onto our elements.
Here is an initial list of arguments - please add your opinions!
Pro:
Contra: