diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 00000000..be84740d --- /dev/null +++ b/eslint.config.js @@ -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}'] + })) +]; diff --git a/package.json b/package.json index a7c78ed4..4e3af7bb 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,5 @@ { + "type": "module", "dependencies": { "tldts": "^7.0.19" }