jshint
JavaScript code quality tool
TLDR
Lint JavaScript file
$ jshint [file.js]
Lint multiple files$ jshint [file1.js] [file2.js]
Use config file$ jshint --config [.jshintrc] [file.js]
Check all JS files$ jshint [src/]
Verbose output$ jshint --verbose [file.js]
Show specific warnings$ jshint --show-non-errors [file.js]
SYNOPSIS
jshint [options] file...
DESCRIPTION
JSHint is a JavaScript code quality tool. It detects errors and potential problems in JavaScript.
The tool is configurable to enforce coding standards. It integrates with editors and build systems.
PARAMETERS
FILE
JavaScript files to lint.--config FILE
Configuration file.--verbose
Show error codes.--reporter NAME
Output format reporter.--extract MODE
Extract JS from HTML.--help
Display help information.
CAVEATS
Node.js-based. Consider ESLint for modern projects. Configuration important.
HISTORY
JSHint was forked from JSLint by Anton Kovalyov in 2011 to provide a more configurable JavaScript linter.
