2
0
Fork 0

Added jshint

This commit is contained in:
Willem 2016-04-23 03:17:50 +02:00
parent 3e1ddaf6eb
commit f37d735890
3 changed files with 129 additions and 101 deletions

View file

@ -12,7 +12,7 @@ module.exports = function(config) {
'test/spec-runner.js'],
preprocessors: {
'es5-ff-spa-loader.js': ['coverage']
'es5-ff-spa-loader.js': ['jshint','coverage']
},
reporters: ['coverage', 'mocha', 'junit'],
@ -26,12 +26,35 @@ module.exports = function(config) {
classNameFormatter: undefined, // function (browser, result) to customize the classname attribute in xml testcase element,
properties: {} // key value pair of properties to add to the <properties> section of the report
},
jshint: {
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
boss: true,
devel: true,
eqnull: true,
browser: true,
globals: {
cordova: true,
jQuery: true
}
},
summary: true
},
plugins: [
'karma-requirejs',
'karma-coverage',
'karma-phantomjs-launcher',
'karma-jasmine',
'karma-jshint',
'karma-mocha-reporter',
'karma-junit-reporter'
],