Nick Nisi 11/12/2012

Lint JavaScript on Commit

Read Original

This technical article explains how to implement a Git pre-commit hook that runs JSHint on all JavaScript files staged for a commit. It provides a detailed shell script that checks code against a shared JSHint configuration, cancels the commit if errors are found, and outputs the results. This is a DevOps/software development best practice for maintaining consistent code quality in teams with varied editor setups.

Lint JavaScript on Commit

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week