jshint-external TextMate Bundle
- Validate automatically when you save your file, and on-demand.
- Intelligently uses
.jshintrcsettings, whether stored in the same directory tree as your source file, in your home directory, or referenced from a
- Uses a separately-installed copy of
- Does not include a bundled (possibly outdated) copy of JSHint.
- Fewer dependency problems.
- Common error codes include a link to the relevant explanation on jslinterrors.com.
If you don’t have JSHint, install it:
- Install Node.js.
[sudo] npm install -g jshint
Now install the bundle:
- Download the latest release .zip file.
- Extract it and double-click to install.
View the release notes.
In most cases no configuration is required. However, in some cases you may want to customize the following:
jshintthat is not on your
jshintis not on your
PATH, set the
TM_JSHINT_EXTERNAL_JSHINTvariable to point to it. Set in TextMate > Preferences… > Variables.
- Open the Bundle Editor (Bundles > Edit Bundles…).
- Navigate to JSHint (External) > Menu Actions > Save & Validate with JSHint.
- In the drawer that appears, delete the “Key Equivalent” of
- Use a project-specific JSHint configuration:
- Quit TextMate.
~/Library/Application Support/Avian/Pristine Copy/Bundles.
- If there is a file called
- You may need to clear TextMate’s cache by trashing