npm install karma-eslint --save-devIn your karma.conf.js file:
preprocessors: {
'**/*.js': ['eslint']
}Karma-eslint accepts these options:
stopOnError
- fails a test on any error default:
true
stopOnWarning
- fails a test on any Warning default:
false
Example:
eslint: {
stopOnError: false,
stopOnWarning: true
}This plugin leverages ESLints normal configuration methods. The full list of ESLint rules are here.
For more information on Karma visit the Karma site.