diff --git a/packages/eslint-plugin-react-hooks/src/index.ts b/packages/eslint-plugin-react-hooks/src/index.ts index 924299d89894..56597759ed07 100644 --- a/packages/eslint-plugin-react-hooks/src/index.ts +++ b/packages/eslint-plugin-react-hooks/src/index.ts @@ -14,7 +14,7 @@ import { recommendedLatestRules, } from './shared/ReactCompiler'; import RulesOfHooks from './rules/RulesOfHooks'; - +import {version} from '../package.json'; const rules = { 'exhaustive-deps': ExhaustiveDeps, 'rules-of-hooks': RulesOfHooks, @@ -80,7 +80,7 @@ const configs = { const plugin = { meta: { name: 'eslint-plugin-react-hooks', - version: '7.0.0', + version, }, rules, configs,