GithubHelp home page GithubHelp logo

yood / jshint.tmbundle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bodnaristvan/jshint.tmbundle

0.0 1.0 0.0 113 KB

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

License: MIT License

Makefile 0.15% Shell 2.18% JavaScript 7.88% CSS 85.65% HTML 4.14%

jshint.tmbundle's Introduction

JSHint.tmbundle

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

Note: since JSHint stopped caring about style issues, I've decided to create a more generic javascript hinter bundle, that uses both JSHint and JSCS. The project is called JavascriptHinter.tmbundle, it uses the system installed version of jshint and jscs, and displays hint warnings in the gutter, supported by TextMate in the latest beta versions. I've tried to keep the functionality of this project to make switching as painless as possible, but let me know if you run into troubles using the new one!

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

jshint.tmbundle's People

Contributors

bodnaristvan avatar niettcat avatar sompylasar avatar

Watchers

 avatar

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.