Skip to content

szafranek/JavaScript-Lint-Tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JavaScript Lint Tools for TextMate 2

A bundle for validating JavaScript files with either JSHint or JSLint. To be minimally obtrusive, validation results are displayed by default in a tooltip. You can override this behavior in bundle configuration.

Three commands are provided:

  • Lint on Save. Invoked automatically when saving a JavaScript file using Cmd+S. The file will be validated only if it starts with a comment used to select the linter: /*jshint*/ or /*jslint*/. The usual syntax to provide linting options is supported, e.g. /*jslint white, for */.
  • Validate with JSHint. Invokes JSHint explicitly.
  • Validate with JSLint. Invokes JSLint explicitly.

Installation

mkdir -p ~/Library/Application\ Support/Avian/Pristine\ Copy/Bundles
cd ~/Library/Application\ Support/Avian/Pristine\ Copy/Bundles
git clone git@github.com:szafranek/JavaScript-Lint-Tools.git "JavaScript Lint Tools.tmbundle"

The bundle uses node.js and requires node command to be present in your PATH.

Credits

This bundle started originally as a fork of Adam Craven's bundle for TextMate 1.

Changes

2015-09-15 (v1.0)

Initial version compatible with TextMate 2. Includes JSHint 2.9.0 and JSLint from 2015-08-22.

About

JavaScript Lint Tools bundle for TextMate 2

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published