Permalink
Browse files

.jshint add indent

  • Loading branch information...
1 parent ad49d84 commit 6089684820f673edaf83fc944d73fd2d3c16c19f @princed committed Aug 6, 2013
Showing with 42 additions and 9 deletions.
  1. +32 −0 .jshintrc
  2. +4 −4 expect-deferred.js
  3. +6 −5 index.js
View
@@ -0,0 +1,32 @@
+{
+ "globals": {
+ "expect": false
+ },
+ "node": true,
+ "browser": true,
+ "jquery":true,
+
+ "es3": true,
+
+ "indent": 4,
+ "camelcase": true,
+ "curly": true,
+ "newcap": true,
+ "quotmark": true,
+ "trailing": true,
+ "sub": true,
+
+ "bitwise": true,
+ "eqeqeq": true,
+ "eqnull": true,
+ "immed": true,
+ "latedef": true,
+ "noarg": true,
+ "undef": true,
+ "unused": true,
+
+ "maxparams": 4,
+ "maxdepth": 4,
+
+ "white": false
+}
View
@@ -1,8 +1,8 @@
- // Duct tape for jQuery promises
- window.expectDeferred = function(deferred) {
+// Duct tape for jQuery promises
+window.expectDeferred = function(deferred) {
if ('pipe' in deferred) {
- delete deferred.pipe;
+ delete deferred.pipe;
}
return expect(deferred);
- };
+};
View
@@ -1,7 +1,7 @@
var path = require('path');
var pattern = function(file) {
- return {pattern: file, included: true, served: true, watched: false};
+ return {pattern: file, included: true, served: true, watched: false};
};
var plugins = {
@@ -19,13 +19,14 @@ var plugins = {
var $inject = ['config.files'];
var exports = {};
-var name, plugin;
+var label, plugin;
-for (name in plugins) {
- plugin = plugins[name];
+for (label in plugins) {
+ plugin = plugins[label];
plugin.$inject = $inject;
- exports['framework:' + name] = ['factory', plugin];
+ exports['framework:' + label] = ['factory', plugin];
}
module.exports = exports;
+ git

0 comments on commit 6089684

Please sign in to comment.