From 75788a31b3008a1aaa7a257ee3f76ced64455925 Mon Sep 17 00:00:00 2001 From: GuDoYoon Date: Thu, 19 Feb 2026 12:59:54 +0900 Subject: [PATCH] eslint-plugin-react-hooks: source version from package.json --- packages/eslint-plugin-react-hooks/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,