JSPM

  • Created
  • Published
  • Downloads 219436
  • Score
    100M100P100Q167412F
  • License MIT

ESLint rules for Jasmine

Package Exports

  • eslint-plugin-jasmine

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-plugin-jasmine) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

eslint-plugin-jasmine

Build Status

ESLint rules for Jasmine

Usage

  1. Install eslint-plugin-jasmine as a dev-dependency:

    npm install --save-dev eslint-plugin-jasmine
  2. Enable the plugin by adding it to your .eslintrc:

    plugins:
      - jasmine

Configuration

This plugin ships with a default configuration for each rule:

Rule Default Options
no-focused-tests 2
no-disabled-tests 1
no-spec-dupes 1, 'block' ['block', 'branch']
no-suite-dupes 1, 'block' ['block', 'branch']

For example, the no-focused-tests rule is enabled by default and will cause ESLint to throw an error (with an exit code of 1) when triggered.

You may customise each rule by adding a value in your .eslintrc rules property:

plugins:
  - jasmine
rules:
  jasmine/no-focused-tests: 0
  jasmine/no-suite-dupes:
    - 2
    - "branch"

See configuring rules for more information.

Author

© 2015 Tom Vincent git@tlvince.com

License

Licensed under the MIT license.