https://github.com/artcom/jslint-tmbundle
A JSLint TextMate Bundle
https://github.com/artcom/jslint-tmbundle
Last synced: 7 months ago
JSON representation
A JSLint TextMate Bundle
- Host: GitHub
- URL: https://github.com/artcom/jslint-tmbundle
- Owner: artcom
- License: other
- Created: 2012-05-02T13:38:28.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2013-05-15T12:37:11.000Z (about 13 years ago)
- Last Synced: 2024-12-27T12:21:50.116Z (over 1 year ago)
- Language: Ruby
- Homepage: http://artcom.github.io/jslint-tmbundle
- Size: 1.58 MB
- Stars: 1
- Watchers: 6
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# JSLint TextMate Bundle
Another [JSLint] Bundle for [TextMate].
[](http://travis-ci.org/artcom/jslint-tmbundle)
[](https://coveralls.io/r/artcom/jslint-tmbundle?branch=master)
## Why?
There are many JSLint Bundles out there which may be prettier but they all lack functionality.
Most Bundles only report on errors on lines and thats it.
This bundle takes advantage of the full returned data by JSLint, incl. listed globals and more.
It also has `.jslintrc` support which makes it compatible with the [jslint.vim] vim-plugin.
This is important for teams working on stuff.
Example Session:

## Features
* Allows jslinting saved files with Crockford's JSLint.
* Activate by using `CTRL+ALT+C`
* `.jslintrc`-support
* Also generates reports on full data returned by JsLint

## Installation
Install by cloning:
$ cd ~/Library/Application\ Support/TextMate/Bundles/
$ git clone git://github.com/artcom/jslint-tmbundle.git JSLINT.tmbundle
$ osascript -e 'tell app "TextMate" to reload bundles'
or cloning somewhere else and symlinking it there.
## TextMate & rvm
It is possible to create an environment for rvm in textmate by following the
instructions on [rvm homepage].
The TM_RUBY will then be used automatically by the bundle. Otherwise the
system ruby will be used.
## Syntax highlighting support
The gem [coderay] can be used (optionally) to highlight code.

## .jslintrc support
This bundle supports using '~/.jslintrc'. Recommended Settings:
/*jslint infixin: true, nomen:true, sloppy: true, vars: true, white: true, forin: true, plusplus: true, continue: true, bitwise: true */

## References & Attributions
* This bundle uses a [fork] of jslint.
*Note*: `infixin` is a custom setting disabling the 'in' operator checks.
* Uses Jquery and Jquery-ui
* Uses [Silk Icon Set] 1.3
* Uses [qtip]
## Development setup
The bundle uses [rspec] and [guard] for development. The required gems can be
installed by [bundler] with the supplied Gemfile.
- - -
*Copyright (c) [ART+COM AG](http://www.artcom.de/), Berlin Germany 2012 - Author: Andreas Marr (andreas.marr@artcom.de)*
[JSLint]: https://github.com/douglascrockford/JSLint
[jslint.vim]: https://github.com/hallettj/jslint.vim.git
[TextMate]: http://macromates.com/
[rvm homepage]: https://rvm.io/integration/textmate/
[fork]: https://github.com/artcom/JSLint
[coderay]: https://github.com/rubychan/coderay
[Silk Icon Set]: http://www.famfamfam.com/lab/icons/silk/
[qtip]: http://craigsworks.com/projects/qtip/
[rspec]: http://rspec.info/
[guard]: https://github.com/guard/guard
[bundler]: http://gembundler.com/