New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

lintall

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lintall

Run JSHint programmatically

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

node-lintall

Utility to easily JSHint all JavaScript files in your project

Installation

npm install -g lintall

Usage

Setup Project

  • Place a .jshintrc file in the root of your project with your preferred settings
  • Place a .lintallrc file 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 directory
  • lib/**/*.js: All js files in the lib directory as well as all sub-directories
  • config/*js: All js files in the config directory

CLI

lintall

With 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 none

Test

mocha

Coverage:

npm run-script coverage

License

MIT

Keywords

JSHint

FAQs

Package last updated on 21 Apr 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts