lintall
v1.0.4
Published
Run JSHint programmatically
Downloads
11
Readme
node-lintall
Utility to easily JSHint all JavaScript files in your project
Installation
npm install -g lintallUsage
Setup Project
- Place a
.jshintrcfile in the root of your project with your preferred settings - Place a
.lintallrcfile in the root with a space delimited list of globs
Example .lintallrc file:
bin/main.js lib/**/*.js config/*.js
bin/main.js: Only main.js in the bin directorylib/**/*.js: All js files in the lib directory as well as all sub-directoriesconfig/*js: All js files in the config directory
CLI
lintallWith no colors in the output: lintall -c none
Git Pre-Commit Hook
Example .git/hooks/pre-commit file:
#!/bin/sh
set -e
set -x
/usr/local/bin/node /usr/local/bin/lintall -c noneTest
mochaCoverage:
npm run-script coverageLicense
MIT
