Skip to content

GContaldi/karma-eslint

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

karma-eslint

Installation

npm install karma-eslint --save-dev

Usage

In your karma.conf.js file:

  preprocessors: {
    '**/*.js': ['eslint']
  }

Options

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
  }

ESLint

This plugin leverages ESLints normal configuration methods. The full list of ESLint rules are here.


For more information on Karma visit the Karma site.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%