In my NX 20 + Angular 19 project, I got this error while trying to upgrade to the latest 19.x version of Angular and Angular eslint:
Error while loading rule '@angular-eslint/no-uncalled-signals': You have used a rule which requires type information, but don't have parserOptions set to generate type information for this file. See https://typescript-eslint.io/getting-started/typed-linting for enabling linting with type information.
The solution was adding the following in the .eslintrc.json file:
"parserOptions": {
"projectService": true,
"allowAutomaticSingleRunInference": true
}
in the overrides of:
"files": ["*.ts", "*.tsx"],
so now it looks like:
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parserOptions": {
"projectService": true,
"allowAutomaticSingleRunInference": true
},
...
}
...
]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With