{"library":"pre-commit-with-lint","title":"pre-commit-with-lint","description":"A fork of the pre-commit package (v1.2.5) that adds selective linting of only changed files in a commit. It integrates with stylelint and eslint by default, linting CSS/SCSS/Less and JS/JSX files respectively, with configurable patterns. Designed to speed up commits by avoiding full-project linting. Release cadence is low (last update 2017), and it's effectively unmaintained. Key differentiator vs original pre-commit: automatic linting of only staged changes. Alternative better-maintained packages exist.","language":"javascript","status":"deprecated","last_verified":"Fri May 01","install":{"commands":["npm install pre-commit-with-lint"],"cli":{"name":"pre-commit-with-lint","version":null}},"imports":["npm install pre-commit-with-lint --save-dev","{\n  \"pre-commit\": {\n    \"lint\": {\n      \"stylelint\": \"\\\\.(s?css|less)$\",\n      \"eslint\": \"\\\\.jsx?$\"\n    }\n  }\n}","{\n  \"pre-commit\": {\n    \"run\": [\"test\", \"lint\"]\n  }\n}"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"mkdir test-repo && cd test-repo && npm init -y && npm install pre-commit-with-lint --save-dev && echo '{\n  \"name\": \"test\",\n  \"version\": \"1.0.0\",\n  \"scripts\": {\n    \"test\": \"echo \\\"tests pass\\\" && exit 0\",\n    \"lint\": \"echo \\\"linting\\\" && exit 0\"\n  },\n  \"pre-commit\": {\n    \"lint\": {\n      \"eslint\": \".js$\"\n    },\n    \"run\": [\"lint\", \"test\"]\n  }\n}' > package.json && git init && git add . && git commit -m \"test commit\"","lang":"javascript","description":"Shows full setup: install, configure package.json with selective lint and scripts, then commit. Verifies pre-commit hook runs lint and test before allowing commit.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}