Problem
src/core/tests/datamodel.test.ts fails eslint with:
parserOptions.project has been provided for @typescript-eslint/parser. The file was not found in any of the provided project(s).
The @simlin/core package's tsconfig.json does not include test files in its include or files configuration. Because @typescript-eslint/parser is configured with parserOptions.project pointing to this tsconfig, it cannot perform type-aware linting on any test files.
Why it matters
This blocks the pre-commit hook for ALL commits, regardless of which files are changed. The hook runs TypeScript linting across the workspace, which includes src/core/tests/, and the parser error causes a hard failure.
Component(s) affected
src/core (tsconfig.json configuration)
- Pre-commit hook (
scripts/pre-commit)
Possible approaches
- Add a
tsconfig.test.json that extends tsconfig.json and includes the tests/ directory, then configure the eslint override for test files to use it.
- Add
tests/**/*.ts to the existing tsconfig.json include array.
- Configure eslint to use a separate parser options project for test files.
Option 2 is simplest but may pull test types into the production build. Option 1 is the standard pattern for TypeScript projects that separate test and production compilation.
Context
Identified as a pre-existing infrastructure issue blocking the pre-commit hook for all commits.
Problem
src/core/tests/datamodel.test.tsfails eslint with:The
@simlin/corepackage'stsconfig.jsondoes not include test files in itsincludeorfilesconfiguration. Because@typescript-eslint/parseris configured withparserOptions.projectpointing to this tsconfig, it cannot perform type-aware linting on any test files.Why it matters
This blocks the pre-commit hook for ALL commits, regardless of which files are changed. The hook runs TypeScript linting across the workspace, which includes
src/core/tests/, and the parser error causes a hard failure.Component(s) affected
src/core(tsconfig.json configuration)scripts/pre-commit)Possible approaches
tsconfig.test.jsonthat extendstsconfig.jsonand includes thetests/directory, then configure the eslint override for test files to use it.tests/**/*.tsto the existingtsconfig.jsonincludearray.Option 2 is simplest but may pull test types into the production build. Option 1 is the standard pattern for TypeScript projects that separate test and production compilation.
Context
Identified as a pre-existing infrastructure issue blocking the pre-commit hook for all commits.