eslint-plugin-react-hooks-docs
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

eslint-plugin-react-hooks-docs

GitHub stars GitHub forks GitHub issues GitHub license NPM

🚨 Eslint plugin to enforce react hooks documentation.

Built with ❤︎ by Ahmed Tokyo


Installation

npm i eslint eslint-plugin-react-hooks-docs --save-dev

OR

yarn add -D eslint eslint-plugin-react-hooks-docs --save-dev

Usage

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

{
  "plugins": ["react-hooks-docs"]
}

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

{
  "rules": {
    "react-hooks-docs/docs": [
      2,
      {
        "skipDeclarations": true,
        "skipHooks": [
          "useCustomEffect"
        ]
      }
    ]
  }
}

Package Sidebar

Install

npm i eslint-plugin-react-hooks-docs

Weekly Downloads

280

Version

0.0.3

License

MIT

Unpacked Size

12.5 kB

Total Files

9

Last publish

Collaborators

  • a-tokyo