1
0
mirror of synced 2024-11-24 22:06:07 +03:00

Added very basic jshint config

This commit is contained in:
Kevin Brown 2014-09-21 15:21:43 -04:00
parent 114732ec25
commit aebc7ce0d2
4 changed files with 21 additions and 1 deletions

1
.jshintignore Normal file
View File

@ -0,0 +1 @@
tests/vendor/*.js

5
.jshintrc Normal file
View File

@ -0,0 +1,5 @@
{
"bitwise": true,
"indent": 2,
"quotmark": "single"
}

View File

@ -26,6 +26,18 @@ module.exports = function (grunt) {
]
},
jshint: {
options: {
jshintrc: true
},
code: {
src: ["src/js/**/*.js"]
},
tests: {
src: ["tests/**/*.js"]
}
},
sass: {
dist: {
options: {
@ -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")
@ -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"])
}

View File

@ -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",