RentPath’s extensible shared config for ESLint
# npm
npm i --save-dev eslint @rentpath/eslint-config-rentpath
# yarn
yarn add eslint @rentpath/eslint-config-rentpath --dev
Add the following entry to your .eslintrc
{
"extends": "@rentpath/eslint-config-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
or $ yarn lint
- Inside your pull request, bump the semantic version in
package.json
- Merge the pull request
- Draft a release and enter the semantic version from
package.json
tag. The release workflow will automatically publish your new package to GitHub here.