Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-jasmine

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-jasmine - npm Package Compare versions

Comparing version 1.7.0 to 1.8.0

docs/rules/no-assign-spyon.md

6

index.js

@@ -12,3 +12,4 @@ 'use strict'

'no-suite-callback-args': require('./lib/rules/no-suite-callback-args'),
'valid-expect': require('./lib/rules/valid-expect')
'valid-expect': require('./lib/rules/valid-expect'),
'no-assign-spyon': require('./lib/rules/no-assign-spyon')
},

@@ -25,3 +26,4 @@ configs: {

'no-suite-callback-args': 2,
'valid-expect': 1
'valid-expect': 1,
'no-assign-spyon': 0
}

@@ -28,0 +30,0 @@ }

@@ -37,3 +37,3 @@ {

},
"version": "1.7.0"
"version": "1.8.0"
}

@@ -25,19 +25,40 @@ # eslint-plugin-jasmine

By default, no rules are enabled. See the next section for more.
## Configuration
This plugin ships with a default configuration for each rule:
This plugin exports a `recommended` configuration that enforces good practices.
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']
[no-suite-callback-args][] | 2 |
[missing-expect][] | 0, 'expect()' | expectation function names
[valid-expect][] | 1 |
To enable this configuration, use the `extends` property in your `.eslintrc`
config file:
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.
```yaml
plugins:
- jasmine
extends: 'plugin:jasmine/recommended'
```
See the [ESLint config docs][] for more information about extending
configuration files.
[eslint config docs]: http://eslint.org/docs/user-guide/configuring#extending-configuration-files
### Rules
Rule | Recommended | Options
---- | ----------- | -------
[named-spy][] | 0 |
[no-focused-tests][] | 2 |
[no-disabled-tests][] | 1 |
[no-suite-dupes][] | 1, `'block'` | `['block', 'branch']`
[no-spec-dupes][] | 1, `'block'` | `['block', 'branch']`
[missing-expect][] | 0, `'expect()'` | expectation function names
[no-suite-callback-args][] | 2 |
[valid-expect][] | 1 |
[no-assign-spyon][] | 0 |
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`

@@ -53,3 +74,3 @@ property:

- 2
- "branch"
- branch
```

@@ -59,38 +80,22 @@

[named-spy]: docs/rules/named-spy.md
[no-focused-tests]: docs/rules/no-focused-tests.md
[no-disabled-tests]: docs/rules/no-disabled-tests.md
[no-suite-dupes]: docs/rules/no-suite-dupes.md
[no-spec-dupes]: docs/rules/no-spec-dupes.md
[no-suite-dupes]: docs/rules/no-suite-dupes.md
[missing-expect]: docs/rules/missing-expect.md
[no-suite-callback-args]: docs/rules/no-suite-callback-args.md
[missing-expect]: docs/rules/missing-expect.md
[valid-expect]: docs/rules/valid-expect.md
[no-assign-spyon]: docs/rules/no-assign-spyon.md
[configuring rules]: http://eslint.org/docs/user-guide/configuring#configuring-rules
## Recommended configuration
## Author
This plugin exports a `recommended` configuration that enforces good practices.
© 2016 Tom Vincent <git@tlvince.com> and [contributors][].
To enable this configuration, use the `extends` property in your `.eslintrc`
config file:
[contributors]: https://github.com/tlvince/eslint-plugin-jasmine/graphs/contributors
```js
{
"plugins": [
"jasmine"
],
"extends": "plugin:jasmine/recommended"
}
```
See the [ESLint config docs][] for more information about extending
configuration files.
[eslint config docs]: http://eslint.org/docs/user-guide/configuring#extending-configuration-files
## Author
© 2015 Tom Vincent <git@tlvince.com>
## License
Licensed under the [MIT license](http://tlvince.mit-license.org).
Released under the [MIT license](http://tlvince.mit-license.org).

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc