From eeee9f6aead5d64fa7d99bd1217ec9a21ca07872 Mon Sep 17 00:00:00 2001 From: Theo Browne Date: Wed, 14 Jan 2026 01:59:26 -0800 Subject: [PATCH] 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. --- frontend/.eslintrc.cjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/.eslintrc.cjs b/frontend/.eslintrc.cjs index b7bdac4c..e9b291a4 100644 --- a/frontend/.eslintrc.cjs +++ b/frontend/.eslintrc.cjs @@ -1,3 +1,5 @@ +const path = require('path'); + const i18nCheck = process.env.LINT_I18N === 'true'; // Presentational components - these must be stateless and receive all data via props @@ -26,7 +28,7 @@ module.exports = { parserOptions: { ecmaVersion: 'latest', sourceType: 'module', - project: './tsconfig.json', + project: path.join(__dirname, 'tsconfig.json'), }, rules: { 'eslint-comments/no-use': ['error', { allow: [] }],