# tslint-no-unused

> Rules for detecting unused locals and function parameters for TS 2.9+

Latest version **0.2.0-alpha.1** (published 2018-07-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install tslint-no-unused
pnpm add tslint-no-unused
yarn add tslint-no-unused
bun add tslint-no-unused
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0-alpha.1 |
| Published | 2018-07-23 |
| First published | 2018-06-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 9.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sami Kukkonen |
| Maintainers | strax |

## Links

- npm: https://www.npmjs.com/package/tslint-no-unused
- Repository: https://github.com/strax/tslint-no-unused
- Issues: https://github.com/strax/tslint-no-unused/issues
- npm.io page: https://npm.io/package/tslint-no-unused

## Recent versions

- 0.2.0-alpha.1 (latest) — 2018-07-23
- 0.1.1 — 2018-06-16
- 0.1.0 — 2018-06-16

## README

# tslint-no-unused

[![Build Status](https://travis-ci.com/strax/tslint-no-unused.svg?branch=master)](https://travis-ci.com/strax/tslint-no-unused)

A [TSLint](https://palantir.github.io/tslint) rule to make unused locals and properties lint errors.

This rule essentially acts like TypeScript's `noUnusedLocals` and `noUnusedProperties` combined, except that by using TSLint
the actual compilation is not affected.

`no-unused` is a replacement for TSLint's deprecated builtin `no-unused-variable` rule, but also works with
[tslint-language-service](https://github.com/angelozerr/tslint-language-service).

This rule uses TypeScript 2.9's new unused diagnostics, so TS 2.9 or newer is required.

## Usage

Add `tslint-no-unused` to your project's dev dependencies and add the following to your `tslint.json`:

```json
{
  "extends": ["tslint-no-unused"],
  "rules": {
    "no-unused": true
  }
}
```

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