fix: resolve ESLint tsconfig.json path using absolute path (#2033)

Fix parsing error where ESLint was trying to read tsconfig.json from root directory instead of frontend directory. Use path.join(__dirname, 'tsconfig.json') to ensure correct resolution.
This commit is contained in:
Theo Browne
2026-01-14 01:59:26 -08:00
committed by GitHub
parent 3ea8bf1e45
commit eeee9f6aea

View File

@@ -1,3 +1,5 @@
const path = require('path');
const i18nCheck = process.env.LINT_I18N === 'true'; const i18nCheck = process.env.LINT_I18N === 'true';
// Presentational components - these must be stateless and receive all data via props // Presentational components - these must be stateless and receive all data via props
@@ -26,7 +28,7 @@ module.exports = {
parserOptions: { parserOptions: {
ecmaVersion: 'latest', ecmaVersion: 'latest',
sourceType: 'module', sourceType: 'module',
project: './tsconfig.json', project: path.join(__dirname, 'tsconfig.json'),
}, },
rules: { rules: {
'eslint-comments/no-use': ['error', { allow: [] }], 'eslint-comments/no-use': ['error', { allow: [] }],