# tslint-plugin-jasmine

> TSLint rules for Jasmine

Latest version **1.0.3** (published 2019-02-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install tslint-plugin-jasmine
pnpm add tslint-plugin-jasmine
yarn add tslint-plugin-jasmine
bun add tslint-plugin-jasmine
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2019-02-08 |
| First published | 2019-02-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 0 |
| Unpacked size | 41.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Taylor Briggs |
| Maintainers | taylorbriggs |
| Keywords | tslint, tslint plugin, tslint-plugin, tslintplugin, jasmine, jasmine plugin, jasmine-plugin |

## Links

- npm: https://www.npmjs.com/package/tslint-plugin-jasmine
- Repository: https://github.com/TaylorBriggs/tslint-plugin-jasmine
- Issues: https://github.com/TaylorBriggs/tslint-plugin-jasmine/issues
- npm.io page: https://npm.io/package/tslint-plugin-jasmine

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2019-02-08
- 1.0.2 — 2019-02-04
- 1.0.1 — 2019-02-03
- 1.0.0 — 2019-02-03

## README

[![npm version](https://badge.fury.io/js/tslint-plugin-jasmine.svg)](https://badge.fury.io/js/tslint-plugin-jasmine)
[![Build Status](https://travis-ci.com/TaylorBriggs/tslint-plugin-jasmine.svg?branch=master)](https://travis-ci.com/TaylorBriggs/tslint-plugin-jasmine)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

# tslint-plugin-jasmine

> TSLint rules for Jasmine

## Usage

1. Install `tslint-plugin-jasmine` as a dev dependency:

    ```shell
    npm install --save-dev tslint-plugin-jasmine
    ```

2. Enable the rules by adding it to your `tslint.json`:

```json
{
  "extends": [
    // ...other rules
    "tslint-plugin-jasmine"
  ],
  "rules": {
    // enable/disable rules
  }
}
```

### Rules

No rules are enabled by default. You can use the recommended configuration:

Rule                                | Recommended                                                        | Options
----                                | -----------                                                        | -------
[expect-matcher][]                  | { "severity": "warning" }                                          |
[expect-single-argument][]          | { "severity": "warning" }                                          |
[missing-expect][]                  | { "severity": "off", "options": ["expect()", "expectAsync()"] }    | expectation function names
[named-spy][]                       | { "severity": "off" }                                              |
[new-line-before-expect][]          | { "severity": "warning" }                                          |
[new-line-between-declarations][]   | { "severity": "warning" }                                          |
[no-assign-spyon][]                 | { "severity": "off" }                                              |
[no-describe-variables][]           | { "severity": "off" }                                              |
[no-disabled-tests][]               | { "severity": "warning" }                                          |
[no-expect-in-setup-teardown][]     | { "severity": "warning", "options" ["expect()", "expectAsync()"] } | expectation function names
[no-focused-tests][]                | { "severity": "error" }                                            |
[no-global-setup][]                 | { "severity": "error" }                                            |
[no-promise-without-done-fail][]    | { "severity": "warning" }                                          |
[no-spec-dupes][]                   | { "severity": "warning" }                                          | `'branch'`
[no-suite-callback-args][]          | { "severity": "error" }                                            |
[no-suite-dupes][]                  | { "severity": "warning" }                                          | `'branch'`
[no-unsafe-spy][]                   | { "severity": "warning" }                                          |
[prefer-jasmine-matcher][]          | { "severity": "warning" }                                          |
[prefer-to-have-been-called-with][] | { "severity": "warning" }                                          |


For example, using the recommended configuration, the `no-focused-tests` rule
is enabled and will cause TSLint to throw an error (with an exit code of `1`)
when triggered.

[expect-matcher]: docs/rules/expect-matcher.md
[expect-single-argument]: docs/rules/expect-single-argument.md
[missing-expect]: docs/rules/missing-expect.md
[named-spy]: docs/rules/named-spy.md
[new-line-before-expect]: docs/rules/new-line-before-expect.md
[new-line-between-declarations]: docs/rules/new-line-between-declarations.md
[no-assign-spyon]: docs/rules/no-assign-spyon.md
[no-describe-variables]: docs/rules/no-describe-variables.md
[no-disabled-tests]: docs/rules/no-disabled-tests.md
[no-expect-in-setup-teardown]: docs/rules/no-expect-in-setup-teardown.md
[no-focused-tests]: docs/rules/no-focused-tests.md
[no-global-setup]: docs/rules/no-global-setup.md
[no-promise-without-done-fail]: docs/rules/no-promise-without-done-fail.md
[no-spec-dupes]: docs/rules/no-spec-dupes.md
[no-suite-callback-args]: docs/rules/no-suite-callback-args.md
[no-suite-dupes]: docs/rules/no-suite-dupes.md
[no-unsafe-spy]: docs/rules/no-unsafe-spy.md
[valid-expect]: docs/rules/valid-expect.md
[prefer-jasmine-matcher]: docs/rules/prefer-jasmine-matcher.md
[prefer-to-have-been-called-with]: docs/rules/prefer-to-have-been-called-with.md

## License

Released under the [MIT license](LICENSE).

---
_Source: https://npm.io/package/tslint-plugin-jasmine · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
