eslint-plugin-ignore-use-effect

1.2.1 • Public • Published

Better react exhaustive-deps eslint plugin with static variable check

Installation

npm i eslint-plugin-ignore-use-effect

Usage

To use this plugin, you must disable original react-hooks/exhaustive-deps rule

module.exports = {
  // ...
  plugins: ["react-hooks"],
  rules: {
    "react-hooks/exhaustive-deps": "off",
    'ignore-use-effect/exhaustive-deps': 'warn',
  }
  // ...
}

Package Sidebar

Install

npm i eslint-plugin-ignore-use-effect

Weekly Downloads

100

Version

1.2.1

License

MIT

Unpacked Size

70.6 kB

Total Files

5

Last publish

Collaborators

  • calebtan