auditorjs
v0.1.4
Published
A auditor for the project
Downloads
1
Readme
Auditor.js
A auditor for the project
CLI version
Coming soon
Usage
var Auditor = require('auditorjs');
new Auditor({
command: 'git diff --cached --name-only --diff-filter=ACMR',
linters: {
jscs: ['js'],
stylint: ['styl']
},
plugins: '/path/to/plugins'
});
Usage pre-commit
Create pre-commit hook
cd .git/hooks
ln -s ../../node_modules/auditorjs/bin/auditor pre-commit
chmod +x pre-commit
Config in package.json:
{
...
"auditor": {
"command": "git diff --cached --name-only --diff-filter=ACMR",
"linters": {
"jscs": ["js"],
"stylint": ["styl"]
},
"plugins": "/path/to/plugins"
}
}