Skip to content
This repository was archived by the owner on Dec 11, 2021. It is now read-only.

Commit 091e54b

Browse files
arthurvrsfrisk
authored andcommitted
Build: make JSCS and JSHint lint the grunt config too
Fix errors in grunt config Closes gh-103
1 parent d01acad commit 091e54b

File tree

12 files changed

+16
-18
lines changed

12 files changed

+16
-18
lines changed

.jshintrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"expr": true,
77
"immed": true,
88
"noarg": true,
9-
"onevar": true,
109
"quotmark": "double",
1110
"smarttabs": true,
1211
"trailing": true,

tasks/options/connect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ module.exports = {
3636
keepalive: true
3737
}
3838
}
39-
}
39+
};

tasks/options/csslint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
22
src: [ "dist/css/*.css" ]
3-
};
3+
};

tasks/options/jscs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
all: [ "*.js", "performance/**/*.js", "scss/variables/**/*.js" ]
2+
all: [ "*.js", "performance/**/*.js", "scss/variables/**/*.js", "tasks/**/*.js" ]
33
};

tasks/options/jshint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
files: [ "*.js", "performance/**/*.js", "scss/variables/**/*.js" ],
2+
files: [ "*.js", "performance/**/*.js", "scss/variables/**/*.js", "tasks/**/*.js" ],
33
options: {
44
jshintrc: ".jshintrc"
55
}

tasks/options/sass.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ module.exports = {
1010
"dist/css/chassis.css": "scss/style.scss"
1111
}
1212
}
13-
};
13+
};

tasks/options/start-selenium-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ module.exports = {
1313
systemProperties: {}
1414
}
1515
}
16-
}
16+
};

tasks/options/svgstore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ module.exports = {
1616
"icons/icons.svg": [ "icons/svg-min/*.svg" ]
1717
}
1818
}
19-
}
19+
};

tasks/options/watch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ module.exports = {
1313
spawn: false
1414
}
1515
}
16-
}
16+
};

tasks/selenium_safeguard.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
module.exports = function( grunt ) {
2-
var target,
3-
seleniumChildProcesses = {};
2+
var seleniumChildProcesses = {};
43

54
// This saves the process so we can attempt to kill it later in the case of a failure
65
grunt.event.on( "selenium.start", function( target, process ) {
@@ -26,4 +25,4 @@ module.exports = function( grunt ) {
2625
}
2726
}
2827
});
29-
};
28+
};

tasks/update_authors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ module.exports = function( grunt ) {
1515
done();
1616
});
1717
});
18-
};
18+
};

tasks/variables.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
module.exports = function( grunt ) {
22
grunt.registerTask( "variables", function() {
3-
var jsass = require( "jsass-vars" );
4-
var path = require( "path" );
5-
var varPath = path.join( process.cwd(), "scss/variables/*" );
6-
var distPath = path.join( process.cwd(), "dist" );
3+
var jsass = require( "jsass-vars" ),
4+
path = require( "path" ),
5+
varPath = path.join( process.cwd(), "scss/variables/*" ),
6+
distPath = path.join( process.cwd(), "dist" );
77
grunt.file.mkdir( distPath );
88
jsass( varPath, {
99
"dest": distPath,
1010
"name": "chassis"
1111
} );
12-
} )
12+
} );
1313
};

0 commit comments

Comments
 (0)