eslint-plugin-hooks-formatter

0.0.30 • Public • Published

eslint-plugin-hooks-formatter

eslint plugin for formating react hooks

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-hooks-formatter:

npm install eslint-plugin-hooks-formatter --save-dev

Usage

Add hooks-formatter to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "hooks-formatter"
    ]
}

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

{
    "rules": {
        "hooks-formatter/line-breaks": 2
    }
}

Configurations

TODO: Run eslint-doc-generator to generate the configs list (or delete this section if no configs are offered).

Rules

TODO: Run eslint-doc-generator to generate the rules list.

Package Sidebar

Install

npm i eslint-plugin-hooks-formatter

Weekly Downloads

10

Version

0.0.30

License

ISC

Unpacked Size

10.4 kB

Total Files

10

Last publish

Collaborators

  • yauhendavidovich