eslint-config-rentpath
RentPath’s extensible shared config for ESLint
Installation
npm i --save-dev eslint eslint-config-rentpath
Usage
Add the following entry to your .eslintrc
{
"extends": "rentpath"
}
It's easiest to add a script to package.json
to run linting; for example,
"scripts": {
"lint": "eslint <path_to_javascript_dir>",
}
Then just $ npm run lint
Commitizen
eslint-config-rentpath
uses Commitizen to format commit messages.
- Install it globally
$ npm install -g commitizen
Once you are ready to commit, follow the familiar github workflow, with a slight change.
$ git add <files>
$ git cz
$ git cz
will bring up the Commitizen commit prompt, follow the instructions, and $ git push
as usual.