Add jshint to npm

Change-Id: I87bf6347e80395b10ee496f0786d55e759a4fef3
This commit is contained in:
Paladox 2016-02-08 22:39:07 +00:00 committed by Hashar
parent 62ecb113b2
commit 663b2f9c3b
4 changed files with 17 additions and 5 deletions

2
.jshintignore Normal file
View file

@ -0,0 +1,2 @@
node_modules
vendor

View file

@ -6,7 +6,7 @@
"curly": true,
"eqeqeq": true,
"immed": true,
"latedef": true,
"latedef": "nofunc",
"newcap": true,
"noarg": true,
"noempty": true,

View file

@ -1,15 +1,24 @@
/*jshint node:true */
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
grunt.loadNpmTasks( 'grunt-banana-checker' );
grunt.loadNpmTasks( 'grunt-jscs' );
grunt.loadNpmTasks( 'grunt-jsonlint' );
grunt.initConfig( {
banana: {
all: 'i18n/'
jshint: {
options: {
jshintrc: true
},
all: [
'.'
]
},
jscs: {
all: '.'
src: '<%= jshint.all %>'
},
banana: {
all: 'i18n/'
},
jsonlint: {
all: [
@ -19,6 +28,6 @@ module.exports = function ( grunt ) {
}
} );
grunt.registerTask( 'test', [ 'jsonlint', 'banana', 'jscs' ] );
grunt.registerTask( 'test', [ 'jshint', 'jscs', 'jsonlint', 'banana' ] );
grunt.registerTask( 'default', 'test' );
};

View file

@ -7,6 +7,7 @@
"grunt": "0.4.5",
"grunt-cli": "0.1.13",
"grunt-banana-checker": "0.4.0",
"grunt-contrib-jshint": "0.12.0",
"grunt-jscs": "2.7.0",
"grunt-jsonlint": "1.0.7"
}