Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/artcom/jslint-tmbundle
A JSLint TextMate Bundle
https://github.com/artcom/jslint-tmbundle
Last synced: about 1 month 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 (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-05-15T12:37:11.000Z (over 11 years ago)
- Last Synced: 2024-11-07T06:36:29.813Z (3 months 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].
[![Build Status](https://secure.travis-ci.org/artcom/jslint-tmbundle.png?branch=master)](http://travis-ci.org/artcom/jslint-tmbundle)
[![Coverage Status](https://coveralls.io/repos/artcom/jslint-tmbundle/badge.png?branch=master)](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:
![Example Session](https://github.com/artcom/jslint-tmbundle/raw/master/Support/images/screenshots/errors.png)
## 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
![Functions](https://github.com/artcom/jslint-tmbundle/raw/master/Support/images/screenshots/functions.png)
## 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.
![Highlighted Source](https://github.com/artcom/jslint-tmbundle/raw/master/Support/images/screenshots/source.png)
## .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 */
![Settings](https://github.com/artcom/jslint-tmbundle/raw/master/Support/images/screenshots/settings.png)
## 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 ([email protected])*[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/