# tslint-eslint-rules-recommended

> Recommended ESLint rules for tslint-eslint-rules

Latest version **1.2.2** (published 2019-03-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install tslint-eslint-rules-recommended
pnpm add tslint-eslint-rules-recommended
yarn add tslint-eslint-rules-recommended
bun add tslint-eslint-rules-recommended
```

## 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.2.2 |
| Published | 2019-03-16 |
| First published | 2018-05-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | DavidGG |
| Maintainers | david_gg |
| Keywords | tslint, tslint-eslint-rules, typescript, linter, eslint |

## Links

- npm: https://www.npmjs.com/package/tslint-eslint-rules-recommended
- Repository: https://github.com/davidgg/tslint-eslint-rules-recommended
- Homepage: https://github.com/davidgg/tslint-eslint-rules-recommended#readme
- Issues: https://github.com/davidgg/tslint-eslint-rules-recommended/issues
- npm.io page: https://npm.io/package/tslint-eslint-rules-recommended

## Dependencies (1)

- [tslint-eslint-rules](https://npm.io/package/tslint-eslint-rules.md) ^5.4.0

## 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.2.2 (latest) — 2019-03-16
- 1.2.0 — 2018-10-20
- 1.1.0 — 2018-05-19
- 1.0.1 — 2018-05-19
- 1.0.0 — 2018-05-19

## README

[![npm version](https://badge.fury.io/js/tslint-eslint-rules-recommended.svg)](https://www.npmjs.com/package/tslint-eslint-rules-recommended)
[![dependencies](https://david-dm.org/davidgg/tslint-eslint-rules-recommended.svg)](https://david-dm.org/davidgg/tslint-eslint-rules-recommended)
[![total downloads](https://img.shields.io/npm/dm/tslint-eslint-rules-recommended.svg)](https://www.npmjs.com/package/tslint-eslint-rules-recommended)
[![License](https://img.shields.io/npm/l/tslint-eslint-rules-recommended.svg)](LICENSE)

# tslint-eslint-rules-recommended

Recommended ESLint rules for tslint-eslint-rules. Inspired by ESLint Recommended rules [eslint:recommended rules](https://github.com/eslint/eslint/blob/master/conf/eslint-recommended.js) and [tslint-eslint-rules project](https://github.com/buzinas/tslint-eslint-rules) that ports most of them.

## 🤔 How to use?

Install the dependency

```shell
npm i tslint-eslint-rules-recommended --save-dev
```

Use it in your tslint.json file

```json
{
  "extends": ["tslint-eslint-rules-recommended"]
}
```

## 🤓 Available rules

If you want, you can extend or modify the recommended rules:

```json
{
  "extends": ["tslint-eslint-rules-recommended"],
  "rules": {
    "valid-typeof": false
  }
}
```

In addition to [Palantir rules](https://palantir.github.io/tslint/rules/) you can use
[tslint-eslint-rules](https://github.com/buzinas/tslint-eslint-rules).

## Rules

✅ Recommended rules enabled ([ESLint recommended rules](https://eslint.org/docs/rules/)) ✅

| Rule                     | Origin                               |
| ------------------------ | ------------------------------------ |
| no-cond-assign           | TSLint "no-conditional-assignment"   |
| no-console               | TSLint "no-console"                  |
| no-constant-condition    | tslint-eslint-rules                  |
| no-control-regex         | tslint-eslint-rules                  |
| no-debugger              | TSLint "no-debugger"                 |
| no-duplicate-case        | tslint-eslint-rules                  |
| no-empty-character-class | tslint-eslint-rules                  |
| no-empty                 | TSLint "no-empty"                    |
| no-ex-assign             | tslint-eslint-rules                  |
| no-extra-boolean-cast    | tslint-eslint-rules                  |
| no-extra-semi            | tslint-eslint-rules                  |
| no-fallthrough           | TSLint "no-switch-case-fall-through" |
| no-inner-declarations    | tslint-eslint-rules                  |
| no-invalid-regexp        | tslint-eslint-rules                  |
| no-irregular-whitespace  | tslint-eslint-rules                  |
| no-mixed-spaces-and-tabs | tslint-eslint-rules                  |
| no-redeclare             | TSLint "no-duplicate-variable"       |
| no-regex-spaces          | tslint-eslint-rules                  |
| no-sparse-arrays         | tslint-eslint-rules                  |
| no-unsafe-finally        | TSLint "no-unsafe-finally"           |
| no-unused-vars           | TSLint "no-unused-variable"          |
| use-isnan                | TSLint "use-isnan"                   |
| valid-typeof             | tslint-eslint-rules                  |
| padded-blocks            | tslint-eslint-rules                  |

You can add more ESLint rules using [tslint-eslint-rules project](https://github.com/buzinas/tslint-eslint-rules) ported rules.

🚫 Next rules are not currently available: 🚫

| Rule                  | Reason                       |
| --------------------- | ---------------------------- |
| constructor-super     | Not Applicable to TypeScript |
| for-direction         | Unavailable                  |
| getter-return         | Unavailable                  |
| no-case-declarations  | Unavailable                  |
| no-class-assign       | Unavailable                  |
| no-compare-neg-zero   | Unavailable                  |
| no-const-assign       | Not Applicable to TypeScript |
| no-delete-var         | Not Applicable to TypeScript |
| no-dupe-args          | Not Applicable to TypeScript |
| no-dupe-class-members | Not Applicable to TypeScript |
| no-dupe-keys          | Not Applicable to TypeScript |
| no-empty-pattern      | Unavailable                  |
| no-func-assign        | Not Applicable to TypeScript |
| no-global-assign      | Unavailable                  |
| no-new-symbol         | Unavailable                  |
| no-obj-calls          | Not Applicable to TypeScript |
| no-octal              | Not Applicable to TypeScript |
| no-self-assign        | Unavailable                  |
| no-this-before-super  | Not Applicable to TypeScript |
| no-undef              | Not Applicable to TypeScript |
| no-unreachable        | Not Applicable to TypeScript |
| no-unsafe-negation    | Unavailable                  |
| no-unused-labels      | Unavailable                  |
| no-useless-escape     | Unavailable                  |
| require-yield         | Unavailable                  |

## 🚧 TSLint Future Notice

TSLint is an active and updated project, but if you are into linters you should
read [TSLint in 2019 post](https://medium.com/palantir/tslint-in-2019-1a144c2317a9)
to know more about the upcoming changes.

I'll continue the maintenance of this repo as long as TSLint is the main TypeScript linter.

## License

MIT License - read [LICENSE](LICENSE.md) for full details.

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