Files
lcbp3/eslint.config.mjs
admin 4422c68894
CI / CD Pipeline / build (push) Failing after 10m45s
CI / CD Pipeline / release (push) Has been skipped
CI / CD Pipeline / deploy (push) Has been skipped
260323:0917 fix CI : Run Tests #01
2026-03-23 09:17:26 +07:00

37 lines
956 B
JavaScript

import backendConfig from './backend/eslint.config.mjs';
import frontendConfig from './frontend/eslint.config.mjs';
/** @type {import('eslint').Linter.Config[]} */
export default [
{
ignores: [
'**/node_modules/**',
'**/dist/**',
'**/.next/**',
'**/out/**',
'**/build/**',
'**/coverage/**',
'**/.turbo/**',
'**/temp/**',
'**/tmp/**',
'specs/**',
'backend/documentation/**',
'backend/scripts/**',
'frontend/public/**',
'**/test/**',
],
},
...backendConfig.map((config) => ({
...config,
files: config.files
? config.files.map((f) => (f.startsWith('backend/') ? f : `backend/${f}`))
: ['backend/**/*.{ts,tsx,js,jsx}'],
})),
...frontendConfig.map((config) => ({
...config,
files: config.files
? config.files.map((f) => (f.startsWith('frontend/') ? f : `frontend/${f}`))
: ['frontend/**/*.{ts,tsx,js,jsx}'],
})),
];