1.0.2 • Published 2 years ago
@releaseband/lint-staged-config v1.0.2
@releaseband/lint-staged-config
lint-staged shareable config
Installing
npm i -D @releaseband/lint-staged-config
npx install-peerdeps --dev @releaseband/lint-staged-config
create .lintstagedrc.js
file in the root project folder:
module.exports = require('@releaseband/lint-staged-config');
Add husky hook
initialize husky:
npx husky-init && npm install
add pre-commit hook:
npx husky add .husky/pre-commit 'npx --no lint-staged'