eslint-plugin-justive-better-ts-belt

0.0.10 • Public • Published

eslint-plugin-justive-better-ts-belt

prevent using non-exhaustive pattern matching in typescript

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-justive-better-ts-belt:

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:

{
    "plugins": [
        "justive-better-ts-belt"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "justive-better-ts-belt/noPipeForSingleFunction": 2
    }
}

Rules

🔧 Automatically fixable by the --fix CLI option.

Name Description 🔧
noFlowForSingleFunction no flow function with single ts-belt's function. 🔧
noPipeForSingleFunction no pipe function with single ts-belt's function. 🔧
preferTacitStyle prefer tacit style programming. 🔧

Package Sidebar

Install

npm i eslint-plugin-justive-better-ts-belt

Weekly Downloads

2

Version

0.0.10

License

ISC

Unpacked Size

11.3 kB

Total Files

4

Last publish

Collaborators

  • justive