eslint-plugin-justive-better-ts-belt
Version:
prevent using non-exhaustive pattern matching in typescript
57 lines (37 loc) ⢠1.56 kB
Markdown
# eslint-plugin-justive-better-ts-belt
prevent using non-exhaustive pattern matching in typescript
## Installation
You'll first need to install [ESLint](https://eslint.org/):
```sh
npm i eslint --save-dev
```
Next, install `eslint-plugin-justive-better-ts-belt`:
```sh
npm eslint-plugin-justive-better-ts-belt --save-dev
```
## Usage
Add `justive-better-ts-belt` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:
```json
{
"plugins": [
"justive-better-ts-belt"
]
}
```
Then configure the rules you want to use under the rules section.
```json
{
"rules": {
"justive-better-ts-belt/noPipeForSingleFunction": 2
}
}
```
## Rules
<!-- begin auto-generated rules list -->
š§ Automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/user-guide/command-line-interface#--fix).
| Name | Description | š§ |
| :--------------------------------------------------------------- | :----------------------------------------------- | :- |
| [noFlowForSingleFunction](docs/rules/noFlowForSingleFunction.md) | no flow function with single ts-belt's function. | š§ |
| [noPipeForSingleFunction](docs/rules/noPipeForSingleFunction.md) | no pipe function with single ts-belt's function. | š§ |
| [preferTacitStyle](docs/rules/preferTacitStyle.md) | prefer tacit style programming. | š§ |
<!-- end auto-generated rules list -->