feat: add ESLint configuration for frontend files and ignore patterns

This commit is contained in:
Wikid82
2025-11-25 22:08:31 +00:00
parent abea3e8de8
commit 5bfa2975be
2 changed files with 31 additions and 0 deletions

30
eslint.config.js Normal file
View File

@@ -0,0 +1,30 @@
import frontendConfig from './frontend/eslint.config.js';
export default [
{
ignores: [
'backend/**/*',
'data/**/*',
'scripts/**/*',
'tools/**/*',
'docs/**/*',
'.venv/**/*',
'node_modules/**/*',
'dist/**/*',
'*.md',
'*.yml',
'*.yaml',
'*.json',
'*.toml',
'*.sh',
'Dockerfile*',
'.git/**/*',
'.github/**/*'
]
},
// Apply frontend config to frontend files only
...frontendConfig.map(config => ({
...config,
files: config.files ? config.files.map(pattern => `frontend/${pattern}`) : ['frontend/**/*.{ts,tsx,js,jsx}']
}))
];

View File

@@ -1,4 +1,5 @@
{
"type": "module",
"dependencies": {
"tldts": "^7.0.19"
}