auditorjs

0.1.4 • Public • Published

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"
    }
}

Readme

Keywords

none

Package Sidebar

Install

npm i auditorjs

Weekly Downloads

1

Version

0.1.4

License

MIT

Last publish

Collaborators

  • limarc