https://github.com/szafranek/javascript-lint-tools
JavaScript Lint Tools bundle for TextMate 2
https://github.com/szafranek/javascript-lint-tools
jslint textmate
Last synced: 9 months ago
JSON representation
JavaScript Lint Tools bundle for TextMate 2
- Host: GitHub
- URL: https://github.com/szafranek/javascript-lint-tools
- Owner: szafranek
- Created: 2015-09-14T23:34:48.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-15T00:09:19.000Z (almost 11 years ago)
- Last Synced: 2025-07-19T03:54:31.731Z (12 months ago)
- Topics: jslint, textmate
- Language: JavaScript
- Homepage:
- Size: 402 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JavaScript Lint Tools for TextMate 2
A bundle for validating JavaScript files with either [JSHint](http://jshint.com/) or [JSLint](http://jslint.com/). To be minimally obtrusive, validation results are displayed by default in a tooltip. You can override this behavior in bundle configuration.
Three commands are provided:
* `Lint on Save`. Invoked automatically when saving a JavaScript file using `Cmd`+`S`. The file will be validated only if it starts with a comment used to select the linter: `/*jshint*/` or `/*jslint*/`. The usual syntax to provide linting options is supported, e.g. `/*jslint white, for */`.
* `Validate with JSHint`. Invokes JSHint explicitly.
* `Validate with JSLint`. Invokes JSLint explicitly.
## Installation
```
mkdir -p ~/Library/Application\ Support/Avian/Pristine\ Copy/Bundles
cd ~/Library/Application\ Support/Avian/Pristine\ Copy/Bundles
git clone git@github.com:szafranek/JavaScript-Lint-Tools.git "JavaScript Lint Tools.tmbundle"
```
The bundle uses node.js and requires `node` command to be present in your `PATH`.
## Credits
This bundle started originally as a fork of Adam Craven's [bundle](https://github.com/AdamCraven/JavaScript-Lint-tools.tmbundle) for TextMate 1.
## Changes
### 2015-09-15 (v1.0)
Initial version compatible with TextMate 2. Includes JSHint 2.9.0 and JSLint from 2015-08-22.