Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.49 KB

CONTRIBUTING.md

File metadata and controls

44 lines (29 loc) · 1.49 KB

Contribution

If you think there's room for improvement or see it broken feel free to submit a patch. We'll accept a patch through any medium: GitHub pull requests, gists, emails, gitter.im snippets, etc. Tests aren't obligatory but well-appreciated.

For questions, just post an issue, thanks.

Coding Style

We use EditorConfig for basics and encourage you to install its plugin on your text editor of choice. This will get you 25% of the way there.

CSS

  • Keep variables at the base level and simple.
  • We will follow BEM.

JS

Just following the current style (check the files), and you'll be fine. Note that we are writing in ES6. We loosely follow the Airbnb's JavaScript style guide with a few notable exceptions.

In summary,

  • Use semicolons;
  • Commas last,
  • 2 spaces for indentation (no tabs)
  • Prefer ' over "
  • 80 character line length
  • "Attractive"
  • Do not use the optional parameters of setTimeout and setInterval

Building

This project uses Mocha, Chai, Sinon, and Karma (test runner).

We put our tests of each file in the __tests__ directory in the same folder.

Automation

$ npm test # run the tests
$ npm run script # build scripts
$ npm run style # build sass
$ npm run build # run `script` and `style`
$ npm run eslint # lint