Glad to hear you'd like to help improving the library. Here's the how-to!
Sounds nice! Please proceed as following:
- Search for existing issues. Sometimes, other folks may have reported the same issue and it'd be nice not to duplicate them.
- If possible, please create an isolated and reproducible test case. You can make use of jsFiddle - for instance - to share your isolated test cases. We won't hold it against you for feature requests, but a live POC is sometimes easier to catch.
- Share as much information as possible. Where appropriate, include browser and version, version of TKAT… That can help to reproduce the bug, if so.
Github's Pull Request is a fantastic tool to contribute to the code.
Actually, this project is following the GitHub Flow:
- Create a branch
- Add commits
- Open a Pull Request
- Discuss and review your code
- Deploy
- Merge
Just keep in mind the following rules:
- You'd be nice not to pollute your pull request with unintended changes.
- Pull requests should always be against the
develop
branch, never againstmaster
norgh-pages
.
Once you send a Pull Request, your code will be check with Travis CI to tell whether you break the build or not. The Travis test should pass before we accept any Pull Request.
Please follow our coding standards as best as you can to keep consistency over code.
The .editorconfig file should help you configure your IDE to do so.
This project uses ESLint to ensure consistency, following [these rules(https://github.com/nicoespeon/trello-kanban-analysis-tool/blob/master/.eslintrc.js)
You can run the linter with npm run lint
.
There is no linter for stylesheet yet.
As a rule of thumb however, here are a few advices:
- Multiple-line approach (one property and value per line)
- Always a space after a property's colon (.e.g,
display: block;
and notdisplay:block;
) - End all lines with a semi-colon
- For multiple, comma-separated selectors, place each selector on its own line
- Attribute selectors, like
input[type="text"]
, should always wrap the attribute's value in double quotes, for consistency and safety (see this blog post on unquoted attribute values that can lead to XSS attacks).
There is no linter for HTML yet.
As a rule of thumb however, here are a few advices:
- Two spaces for indentation, never tabs
- Double quotes only, never single quotes
- Always use proper indentation
- Use tags and elements valid for an HTML5 doctype
By contributing your code, you agree to license your contribution under the terms of the MIT license.