Permalink
Browse files

Merge pull request #12 from etgryphon/master

Added jshint_options file to make it easier to enter specific jshint options
  • Loading branch information...
2 parents fc8089c + a6b296e commit c33f9a3efc71a1d3676801daac17021288cd455a @fgnass committed Nov 9, 2012
Showing with 21 additions and 15 deletions.
  1. +2 −15 Commands/Save and Hint.tmCommand
  2. +19 −0 Support/jshint_options.js
@@ -8,22 +8,9 @@
<string>#!/usr/bin/env node
var env = process.env || process.ENV,
jshint = require(env.TM_BUNDLE_SUPPORT + '/jshint-tm');
+ jshint_options = require(env.TM_BUNDLE_SUPPORT + '/jshint_options')();
-jshint({
- es5: true,
- forin: true,
- predef: [
- // CommonJS
- "exports",
- "require",
- "module",
- // NodeJS
- "GLOBAL",
- "process",
- "__filename",
- "__dirname"
- ]
-});</string>
+jshint(jshint_options);</string>
<key>input</key>
<string>none</string>
<key>keyEquivalent</key>
View
@@ -0,0 +1,19 @@
+module.exports = function() {
+ var options = {
+ "es5": true,
+ "forin": true,
+ "predef": [
+ // CommonJS
+ "exports",
+ "require",
+ "module",
+ // NodeJS
+ "GLOBAL",
+ "process",
+ "__filename",
+ "__dirname"
+ ]
+ };
+
+ return options;
+}

0 comments on commit c33f9a3

Please sign in to comment.