If you think you've found a bug, or would like to request a new feature, please let us know.
- Before you report an issue, please make sure you're on the latest version of the addon, as this may fix the issue for you.
- When reporting a bug, please give us as much detail as possible. This allows us to more easily verify the issue.
- After filing an issue, you are welcome to submit a PR to fix that issue if you wish!
If you are opening an issue to request a new feature, please provide:
- A detailed description of the feature you would like to add, and include the reason(s) for it.
- Include references to standards or other docs as you are able.
# clone the latest ember-template-lint from github:
- git clone https://github.com/ember-template-lint/ember-template-lint.git
# navigate to the cloned directory
- cd ember-template-lint
# ensure Node.js and npm are installed
# run tests to make sure everything will start out in a good state
- npm install
- npm test
# create a new rule
- npm run new:rule rule-name
# test rule
- npm run test:jest rule-name
- npm run update:readme
When working on the linter, you'll need to lint and test your work. For the linter, there are a few options:
- Lint everything at once -
npm run lint
- Lint just the docs -
npm run lint:docs .
(to automatically fix issues, runnpm run lint:docs . --fix
) - Lint just the js files -
npm run lint:js
(to automatically fix issues, runnpm run lint:js --fix
)
To test:
- To run tests and the linter at once, run
npm test
(ornpm run test
) - To just run the tests, run
npm run test:jest
- To just run a specific test (i.e.,
require-valid-alt-text
), runnpm run test:jest require-valid-alt-text
It's a great idea to run the linting and ensure all of your tests are passing before submitting a PR. This will help ensure that everything is formatted and working as intended, and will help the reviewers.
Thank you for contributing to this addon!