# @awam/danger-plugin-tslint

> Add tslint errors and warnings to your Danger output

Latest version **1.1.0** (published 2019-10-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @awam/danger-plugin-tslint
pnpm add @awam/danger-plugin-tslint
yarn add @awam/danger-plugin-tslint
bun add @awam/danger-plugin-tslint
```

## 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.1.0 |
| Published | 2019-10-04 |
| First published | 2019-04-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 119.6 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ewan Harris |
| Maintainers | awam |
| Keywords | danger-plugin, tslint |

## Links

- npm: https://www.npmjs.com/package/@awam/danger-plugin-tslint
- Repository: https://github.com/ewanharris/danger-plugin-tslint
- Homepage: https://github.com/ewanharris/danger-plugin-tslint#readme
- Issues: https://github.com/ewanharris/danger-plugin-tslint/issues
- npm.io page: https://npm.io/package/@awam/danger-plugin-tslint

## Dependencies (2)

- [danger](https://npm.io/package/danger.md) ^7.1.4
- [@types/node](https://npm.io/package/@types/node.md) ^11.13.22

## 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.1.0 (latest) — 2019-10-04
- 1.0.0 — 2019-04-24

## README

# danger-plugin-tslint

Add tslint errors and warnings to your Danger output

## Usage

Install the package to your devDependencies

```bash
npm install @awam/danger-plugin-tslint --save-dev
# or
yarn add @awam/danger-plugin-tslint --dev
```

Add the package to your dangerfile

```js
import tslint from '@awam/danger-plugin-tslint';
import { join } from 'path'
async function main() {
  await tslint().
  // supply a tslint file in a different location
  await tslint({ tslintConfigurationPath: join(process.cwd(), 'config', 'tslint.json' )}),
  // supply other file extensions to be linted
  await tslint({ fileExtensions: [ '.ts', '.tsx', '.js' ]}),
}

main()
  .then(() => process.exit(0))
  .catch(err => {
    fail(err.toString());
    process.exit(1);
});
```

This plugin will leave no output if no errors or warnings exist.
If tslint fails to parse the config file then the error message will be reported as a fail.

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