Skip to content

Commit

Permalink
Added very basic jshint config
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-brown committed Oct 22, 2014
1 parent 114732e commit aebc7ce
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions .jshintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tests/vendor/*.js
5 changes: 5 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"bitwise": true,
"indent": 2,
"quotmark": "single"
}
15 changes: 14 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,18 @@ module.exports = function (grunt) {
]
},

jshint: {
options: {
jshintrc: true
},
code: {
src: ["src/js/**/*.js"]
},
tests: {
src: ["tests/**/*.js"]
}
},

sass: {
dist: {
options: {
Expand Down Expand Up @@ -145,6 +157,7 @@ module.exports = function (grunt) {
});

grunt.loadNpmTasks("grunt-contrib-concat")
grunt.loadNpmTasks("grunt-contrib-jshint")
grunt.loadNpmTasks("grunt-contrib-qunit")
grunt.loadNpmTasks("grunt-contrib-requirejs")
grunt.loadNpmTasks("grunt-contrib-uglify")
Expand All @@ -156,5 +169,5 @@ module.exports = function (grunt) {

grunt.registerTask("compile", ["requirejs", "sass:dev", "concat"])
grunt.registerTask("minify", ["uglify", "sass:dist"])
grunt.registerTask("test", ["qunit"])
grunt.registerTask("test", ["qunit", "jshint"])
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"grunt": "^0.4.5",
"grunt-cli": "^0.1.13",
"grunt-contrib-concat": "^0.4.0",
"grunt-contrib-jshint": "^0.10.0",
"grunt-contrib-nodeunit": "~0.3.3",
"grunt-contrib-qunit": "~0.4.0",
"grunt-contrib-requirejs": "^0.4.4",
Expand Down

0 comments on commit aebc7ce

Please sign in to comment.