/JSHint.tmbundle

TextMate 2 JSHint plugin using the npm package version of JSHint.

Primary LanguageCSSMIT LicenseMIT

JSHint.tmbundle

This is a TextMate 2 JSHint plugin using the npm package version of JSHint.

Screenshot of JSHint.tmbundle running in TextMate

Originally forked from the JSHint.tmbundle by oost to make a few bugfixes, but ended up creating a full rewrite instead.

Installation

Requirements:

Installation:

  1. Clone the repository git clone git://github.com/bodnaristvan/JSHint.tmbundle.git.
  2. Go to the directory cd JSHint.tmbundle.
  3. Run make
  4. Run open . in the same directory to install the bundle
  5. If you run into problems with node not found while running the plugin, check out this comment: bodnaristvan#1 (comment)

Configuration

Bundle will use the .jshintrc location set in ${TM_JSHINT_CONFIG}, or look for it in the following places:

  • directory of currently opened file and all parent directories until one is found
  • ${HOME}/.jshintrc
  • default jshintrc provided with the bundle

Presentation

By default, Textmate2 shows any bundle output in a popup window, but also supports a sidebar as shown in the screenshot above.

To switch to using sidebar..

defaults write com.macromates.TextMate.preview htmlOutputPlacement right

Or switch back to window

defaults write com.macromates.TextMate.preview htmlOutputPlacement window