Before submitting a bug report or suggesting an enhancement, check this list to see if a similar issue already exists. If you need to create a new issue, use a descriptive title and include as many details as possible, following the corresponding template.
If you want to contribute to Nightingale by fixing issues or adding new components, you can do by submitting a pull request. You need to follow the template, make sure naming conventions and the coding style is respected.
packages/my-component/package.json # contains the package definition
src/index.js # import your main component and register it as a custom element
src/my-component.js # definition of your main component
test # your test definitions
- Your package name should be short and descriptive (avoid acronyms).
- If your component is for ProtVista (the protein features visualisation tool) it should have the
protvista-
prefix. - the file in which your main component is defined should have the same name as your package (in kebab-case).
- your main component should have the same name as your package, but in PascalCase.
- Documentation, comments, and more importantly code, should all use American English. For example, use
color
and notcolour
Why pull requests?
- Maintain code quality
- Disseminate knowledge
- Catch potential issues early
Before you submit a pull request, please ensure your code comforms to the styleguide, that the tests are passing and follow instructions in the template.
We follow airbnb-base and prettier. Run yarn lint
to run the linter in all packages.