From 5b05ae17c96409afc399ac12ed351afb2b6479b3 Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Wed, 24 Dec 2025 19:41:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(eslint):=20=E4=BF=AE=E5=A4=8D=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E8=A7=84=E5=88=99=E5=AF=BC=E5=87=BA=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit eslint-plugin-local-rules 需要直接导出规则对象, 而非包裹在 { rules: {...} } 中 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- eslint-local-rules/index.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/eslint-local-rules/index.js b/eslint-local-rules/index.js index 06e9a1b8..b213a559 100644 --- a/eslint-local-rules/index.js +++ b/eslint-local-rules/index.js @@ -1,10 +1,9 @@ /** - * 本地 ESLint 规则插件 + * 本地 ESLint 规则 * - * 在 .eslintrc.js 中通过 eslint-plugin-local-rules 使用 + * eslint-plugin-local-rules 需要直接导出规则对象 + * 在 .eslintrc.js 中通过 'local-rules/no-hardcoded-fui-colors' 使用 */ module.exports = { - rules: { - 'no-hardcoded-fui-colors': require('./no-hardcoded-fui-colors'), - }, + 'no-hardcoded-fui-colors': require('./no-hardcoded-fui-colors'), };