Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 2 files changed
  • 0 comments
  • 2 contributors
Oct 05, 2012
Evin Grano etgryphon Added preferences a6b296e
Nov 09, 2012
Felix Gnass Merge pull request #12 from etgryphon/master
Added jshint_options file to make it easier to enter specific jshint options
c33f9a3

Showing 2 changed files with 21 additions and 15 deletions. Show diff stats Hide diff stats

  1. +2 15 Commands/Save and Hint.tmCommand
  2. +19 0 Support/jshint_options.js
17 Commands/Save and Hint.tmCommand
@@ -8,22 +8,9 @@
8 8 <string>#!/usr/bin/env node
9 9 var env = process.env || process.ENV,
10 10 jshint = require(env.TM_BUNDLE_SUPPORT + '/jshint-tm');
  11 + jshint_options = require(env.TM_BUNDLE_SUPPORT + '/jshint_options')();
11 12
12   -jshint({
13   - es5: true,
14   - forin: true,
15   - predef: [
16   - // CommonJS
17   - "exports",
18   - "require",
19   - "module",
20   - // NodeJS
21   - "GLOBAL",
22   - "process",
23   - "__filename",
24   - "__dirname"
25   - ]
26   -});</string>
  13 +jshint(jshint_options);</string>
27 14 <key>input</key>
28 15 <string>none</string>
29 16 <key>keyEquivalent</key>
19 Support/jshint_options.js
... ... @@ -0,0 +1,19 @@
  1 +module.exports = function() {
  2 + var options = {
  3 + "es5": true,
  4 + "forin": true,
  5 + "predef": [
  6 + // CommonJS
  7 + "exports",
  8 + "require",
  9 + "module",
  10 + // NodeJS
  11 + "GLOBAL",
  12 + "process",
  13 + "__filename",
  14 + "__dirname"
  15 + ]
  16 + };
  17 +
  18 + return options;
  19 +}

No commit comments for this range

Something went wrong with that request. Please try again.