fix(eslint): 修复插件冲突和本地规则加载问题
- 移除重复的 @typescript-eslint 插件声明(react-app 已包含) - 重命名 eslint-rules → eslint-local-rules(符合插件约定) - 简化 TypeScript overrides,仅保留规则覆盖 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
10
eslint-local-rules/index.js
Normal file
10
eslint-local-rules/index.js
Normal file
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* 本地 ESLint 规则插件
|
||||
*
|
||||
* 在 .eslintrc.js 中通过 eslint-plugin-local-rules 使用
|
||||
*/
|
||||
module.exports = {
|
||||
rules: {
|
||||
'no-hardcoded-fui-colors': require('./no-hardcoded-fui-colors'),
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user