Files
Charon/eslint.config.js
GitHub Actions d3ef8d83b3 fix(frontend): resolve ESLint crash and repair lint configuration
- Scope base JS/TS configs to only JS/TS file extensions, preventing
  TypeError when ESLint applies core rules to markdown/CSS/JSON files
- Remove silent data loss from duplicate JSON keys in five translation
  files where the second dashboard block was overriding the first
- Fix unsafe optional chaining in CredentialManager that would throw
  TypeError when providerTypeInfo is undefined
- Remove stale eslint-disable directive for a rule now handled globally
  by the unused-imports plugin
- Downgrade high-volume lint rules (testing-library, jsx-a11y, import-x,
  vitest) from error to warn to unblock development while preserving
  visibility for incremental cleanup
2026-03-08 07:45:01 +00:00

31 lines
640 B
JavaScript

import frontendConfig from './frontend/eslint.config.js';
export default [
{
ignores: [
'backend/**/*',
'data/**/*',
'scripts/**/*',
'tools/**/*',
'docs/**/*',
'.venv/**/*',
'node_modules/**/*',
'dist/**/*',
'*.yml',
'*.yaml',
'*.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}'],
})),
];