Git Product home page Git Product logo

jshint.tmbundle's Introduction

#JSHint TextMate Bundle

TextMate bundle for JSHint, the (Gentler) JavaScript Code Quality Tool.

Screenshot

Features:

  • Pretty UI
  • Runs automatically upon save (⌘S)
  • Can be bypassed by pressing ⇧⌘S
  • JSHint can be run by itself by pressing ^⇧L
  • Output is only shown when errors are found
  • Window is automatically closed when it looses focus
  • Window with error list is closed when all errors are fixed and saved or checked again
  • Uses custom JSHint options if .jshintrc found in current dir, TextMate project, or User Home
  • Auto-updates itself to the latest version of JSHint
  • Based on Node.js

Installation

Download the zip file and rename the extracted folder to jshint.tmbundle. Double-click.

Prerequisites

You need Node.js and TextMate, that's all.

This bundle uses #!/bin/env node to launch the node process. If you get a node - not found error, the PATH variable is probably not setup properly in TextMate (this happens when you start TextMate via the Finder rather than from the command-line). Either add or extend the PATH variable in TextMate preferences to include path to node binary.

You can set the PATH either via Preferences → Variables or by editing ~/.MacOSX/environment.plist.

Example: When installed with homebrew, path to node is /usr/local/bin/node. If jshint.tmbundle can't find executable node add /usr/local/bin to existing TextMate PATH:

PATH    $PATH:/usr/local/bin

TODO

Consider including/updating a local copy of latest stable JSHint installed using node/npm instead of automatically downloading source files directly from JSHint repo.

Contributors

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.