Added jshint task in Gruntfile, see #48

This commit is contained in:
Yakir Sitbon 2014-04-25 17:22:15 +00:00
parent ad7790f12d
commit f6044d9888
4 changed files with 30 additions and 0 deletions

16
.jshintrc Normal file
View file

@ -0,0 +1,16 @@
{
"bitwise": true,
"browser": true,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"esnext": true,
"immed": true,
"jquery": true,
"latedef": true,
"newcap": true,
"noarg": true,
"node": true,
"strict": false,
"trailing": true
}

View file

@ -82,6 +82,15 @@ module.exports = function(grunt) {
}
},

jshint: {
options: {
jshintrc: '.jshintrc'
},
all: [
'assets/js/settings.js'
]
},

bumpup: {
options: {
updateProps: {
@ -157,6 +166,7 @@ module.exports = function(grunt) {
'!.git/**',
'!tests/**',
'!.travis.yml',
'!.jshintrc',
'!README.md',
'!phpunit.xml',
'!vendor/**',

View file

@ -1,3 +1,5 @@
'use strict';

( function ( $, undefined ) {
var AAL = {
$wrapper: {},

View file

@ -9,6 +9,8 @@
"grunt-checktextdomain": "~0.1.1",
"grunt-pot": "~0.1.2",
"grunt-phpunit": "~0.3.3",
"grunt-contrib-jshint": "~0.6.4",
"grunt-contrib-watch": "~0.3.1",
"grunt-wp-readme-to-markdown-with-extra": "~0.6.0",
"grunt-bumpup": "~0.5.2",
"grunt-shell": "~0.6.4",