Skip to content

Latest commit

 

History

History
executable file
·
26 lines (15 loc) · 1.19 KB

CONTRIBUTING.md

File metadata and controls

executable file
·
26 lines (15 loc) · 1.19 KB

Contributing Guidelines

Please take care to observe the following when you contribute code to Nucleus:

  1. Before you put a lot of work into a pull request that could be rejected, create an issue with your proposal for discussion.

  2. All Javascript code must pass the ESlint check. Run npm run lint to check your code.

  3. For HTML, use the following formatting guide:

    For tags that cross the max line limit (100 characters), open the tag, then drop down to an indented line and place each attribute on a new line, sorted alphabetically and grouped (new line separating groups) according to the following order:

    • normal attributes
    • v-bind attributes (: shorthand only)
    • v-on attributes (@ shorthand only)
    • directives

    After all attributes, drop down to a new line with the same indent as opening tag, add the closing > and then close the tag.

    Note: This doesn't apply to content (e.g. text inside div, p, span, etc.) and tags that don't cross the 100 character per line limit.

    Example:

    Example of HTML formatting

  4. For CSS, all selectors must follow the BEM naming guidelines.