When upgrading from Angular 15 to Angular 16.2.x, I encountered the need to update devDependencies, specifically eslint from ~8.33.0 to ^8.39.0
After the migration, I ran into this error message:
You have attempted to use a lint rule that requires the TypeScript type-checker to be available, but the
parserOptions.project
is not configured properly in your project ESLint config file.
To resolve this, I tried:
- disabling set rules for angular-eslint/template
- explicitly setting ./tsconfig.json in parserOptions.project
Folder structure:
- projectname
- frontend
- src
- .eslintrc.js
- angular.json
- package.json
- tsconfig.json
- frontend
The migration was successful, but there seems to be a linter issue due to missing configuration, even though projects
of parserOptions
is set correctly.
I've tried to identify any breaking changes, but so far only the minor version has been updated.
.eslintrc.js file
(contents within .eslintrc.js file)
package.json file
(contents within package.json file)