build(eslint): 更新 ESLint 配置以支持 Solid 规则
- 添加 Solid 规则配置,以适应 Solid 库的编码规范 - 扩展文件匹配模式,确保所有相关文件类型都受到规范检查 - 移除单独的 Solid 插件配置,整合到 TypeScript 配置中
This commit is contained in:
@@ -9,12 +9,10 @@ export default [
|
||||
ignores: ['node_modules/', 'dist/', 'dist-ssr/', '.output/', '*.config.js'],
|
||||
},
|
||||
js.configs.recommended,
|
||||
solid.configs['flat/typescript'],
|
||||
...tseslint.configs.recommended,
|
||||
{
|
||||
files: ['**/*.{ts,tsx,jsx}'],
|
||||
plugins: {
|
||||
solid,
|
||||
},
|
||||
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.browser,
|
||||
|
Reference in New Issue
Block a user