diff --git a/packages/eslint-plugin-react-hooks/src/index.ts b/packages/eslint-plugin-react-hooks/src/index.ts index 924299d89894..74a4071a3d26 100644 --- a/packages/eslint-plugin-react-hooks/src/index.ts +++ b/packages/eslint-plugin-react-hooks/src/index.ts @@ -5,6 +5,7 @@ * LICENSE file in the root directory of this source tree. */ import type {Linter, Rule} from 'eslint'; +import packageJson from '../package.json'; import ExhaustiveDeps from './rules/ExhaustiveDeps'; import { @@ -80,7 +81,7 @@ const configs = { const plugin = { meta: { name: 'eslint-plugin-react-hooks', - version: '7.0.0', + version: packageJson.version, }, rules, configs,