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:
@@ -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'),
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user