![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
eslint-plugin-jasmine
Advanced tools
Readme
ESLint rules for Jasmine
Install eslint-plugin-jasmine
as a dev-dependency:
npm install --save-dev eslint-plugin-jasmine
Enable the plugin by adding it to your .eslintrc
:
plugins:
- jasmine
ESLint itself provides a Jasmine environment for Jasmine's global
variables. It's therefore recommended to also enable it in your .eslintrc
:
plugins:
- jasmine
env:
jasmine: true
By default, no rules are enabled. See the next section for more.
This plugin exports a recommended
configuration that enforces good practices.
To enable this configuration, use the extends
property in your .eslintrc
config file:
plugins:
- jasmine
env:
jasmine: true
extends: "plugin:jasmine/recommended"
See the ESLint config docs for more information about extending configuration files.
Rule | Recommended | Options |
---|---|---|
expect-matcher | 1, | |
expect-single-argument | 1, | |
missing-expect | 0, 'expect()' , 'expectAsync()' | expectation function names |
named-spy | 0 | |
new-line-before-expect | 1 | |
new-line-between-declarations | 1 | |
no-assign-spyon | 0 | |
no-describe-variables | 0 | |
no-disabled-tests | 1 | |
no-expect-in-setup-teardown | 1, 'expect()' , 'expectAsync()' | expectation function names |
no-focused-tests | 2 | |
no-global-setup | 2 | |
no-pending-tests | 1 | |
no-promise-without-done-fail | 1 | |
no-spec-dupes | 1, 'block' | ['block', 'branch'] |
no-suite-callback-args | 2 | |
no-suite-dupes | 1, 'block' | ['block', 'branch'] |
no-unsafe-spy | 1 | |
valid-expect | deprecated | |
prefer-jasmine-matcher | 1 | |
prefer-promise-strategies | 1 | |
prefer-toHaveBeenCalledWith | 1 | |
prefer-toBeUndefined | 0 | ['always', 'never'] |
For example, using the recommended configuration, the no-focused-tests
rule
is enabled 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
env:
jasmine: true
rules:
jasmine/no-focused-tests: 0
jasmine/no-suite-dupes:
- 2
- branch
See configuring rules for more information.
Š 2016 - 2017 Tom Vincent git@tlvince.com and contributors.
Released under the MIT license.
FAQs
ESLint rules for Jasmine
The npm package eslint-plugin-jasmine receives a total of 175,426 weekly downloads. As such, eslint-plugin-jasmine popularity was classified as popular.
We found that eslint-plugin-jasmine demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.