# eslint-plugin-no-let-any

> A rule that prevents declaring variables without a type.

Latest version **1.0.3** (published 2022-02-28) · GPL-3.0 license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install eslint-plugin-no-let-any
pnpm add eslint-plugin-no-let-any
yarn add eslint-plugin-no-let-any
bun add eslint-plugin-no-let-any
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2022-02-28 |
| First published | 2022-02-25 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 39.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Zamiell |
| Maintainers | zamiell |
| Keywords | eslint, eslintplugin |

## Links

- npm: https://www.npmjs.com/package/eslint-plugin-no-let-any
- Repository: https://github.com/Zamiell/eslint-plugin-no-let-any
- Homepage: https://github.com/Zamiell/eslint-plugin-no-let-any#readme
- Issues: https://github.com/Zamiell/eslint-plugin-no-let-any/issues
- npm.io page: https://npm.io/package/eslint-plugin-no-let-any

## 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
- [@inrupt/eslint-config-base](https://npm.io/package/@inrupt/eslint-config-base.md) — 4.5K weekly downloads

## Recent versions

- 1.0.3 (latest) — 2022-02-28
- 1.0.2 — 2022-02-28
- 1.0.1 — 2022-02-25

## README

# eslint-plugin-no-let-any

## What is this?

This is a rule that disallows declaring variables with let that do not have a type. For example:

```ts
// Bad
let foo;

// Good
let foo: string;
```

This is useful because the `noImplicitAny` TypeScript compiler flag does not always catch this pattern. Declaring variables without the type can make code harder to read, especially if the variables are instantiated and declared far away from each other.

<br>

## How do I use it?

* `npm install --save-dev eslint-plugin-no-let-any`
* Add  `"plugin:no-let-any/recommended"` to the `extends` section of your `.eslintrc.js` file.

<br>

## What rules does this plugin provide?

It only provides one rule: `"no-let-any/no-let-any"`

<br>

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