fix(eslint): 修复本地规则导出格式

eslint-plugin-local-rules 需要直接导出规则对象,
而非包裹在 { rules: {...} } 中

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
zdl
2025-12-24 19:41:42 +08:00
parent 5a4e6d2a03
commit 5b05ae17c9

View File

@@ -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'),
},
};