karma-jshint
Preprocessor / Plugin for Karma to check JavaScript syntax on the fly.
Usage
Enabling JSLint'ing of your code files
In your Karma config file (nowadays commonly named karma.conf.js
),
specify the files you want jslint'ed in the preprocessor section like this:
...preprocessors:...'./src/**/*': 'jshint'...
Configuration
You may set your own options by adding a jshint
section
to your Karma config file, for example :
...jshint:options:curly: trueeqeqeq: trueimmed: truelatedef: truenewcap: truenoarg: truesub: trueundef: trueboss: truedevel: trueeqnull: truebrowser: trueglobals:cordova: truejQuery: truesummary: true...
jshint.options
An object with JSHint config options.
jshint.summary
Show a summary of all jshint'ed files, aggregated across error types.
For more information on Karma see the official Karma runner homepage.