Thank you for your interest in contributing to this project! Here's what you need to know to get started.
This project is currently being maintained by:
- Ilya Kaminsky (@ilyakam)
However, the project is being developed by the community. You're encouraged to create issues and to submit pull requests for bugfixes and features.
- Create an issue
- Fork the repo
- Write code and unit tests
- Run tests and maintain coverage at 100%
- Submit a pull request
- Communicate in a timely manner while the PR is open
- Make sure that you have the latest version of
node
installed (node -v
); tested usingv8.11.x
- Clone this repo
git clone [email protected]:ilyakam/gulp-pug-linter.git
cd gulp-pug-linter
npm install
- Pick a rule that you'd like to test
- Create a
.pug-lint.json
file with the rule in place, e.g.:{ "disallowIdLiterals": true }
- Create a folder with one or more
.pug
files that violate the rule - Create a
gulpfile.js
at the root of the repo, with the following code:// gulpfile.js const gulp = require('gulp'); const pugLinter = require('gulp-pug-linter'); gulp.task('lint:template', () => ( gulp .src('./*.pug') .pipe(pugLinter({ reporter: 'default' })) ));
- Run
npm run dev
- Run
npm run test -- --watch
and it will automatically rerun the tests on change
This project adheres to the keep a changelog guideline.
This project adheres to the Conventional Commits guideline along with the Angular convention commit types.