kylewelsby/karma-jshint-preprocessor

View on GitHub
example/karma.conf.js

Summary

Maintainability
A
0 mins
Test Coverage
module.exports = function(config) {
  config.set({
    plugins: [
      require('../index.js')
    ],
    framework: ['jasmine'],
    singleRun: true,
    autoWatch: false,
    basePath: '',
    files: [
      'unlinted.js'
    ],
    preprocessors: {
      '*.js': ['jshint']
    },
    jshintPreprocessor: {
      jshintrc: './.jshintrc',
      stopOnError: true
    }
  });
};