Files
comfy-downloader/eslint.config.mjs
Vixalie e5e01610f5 build(eslint): 更新 ESLint 配置以支持 Solid 规则
- 添加 Solid 规则配置,以适应 Solid 库的编码规范
- 扩展文件匹配模式,确保所有相关文件类型都受到规范检查
- 移除单独的 Solid 插件配置,整合到 TypeScript 配置中
2025-08-20 09:50:34 +08:00

32 lines
682 B
JavaScript

import js from '@eslint/js';
import solid from 'eslint-plugin-solid';
import globals from 'globals';
import tseslint from 'typescript-eslint';
export default [
{
ignores: ['node_modules/', 'dist/', 'dist-ssr/', '.output/', '*.config.js'],
},
js.configs.recommended,
solid.configs['flat/typescript'],
...tseslint.configs.recommended,
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
languageOptions: {
globals: {
...globals.browser,
},
parserOptions: {
ecmaVersion: '2020',
ecmaFeatures: {
jsx: true,
},
},
},
rules: {
...solid.configs.typescript.rules,
},
},
];