You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now running ng lint produces an error for each .ts file:
ng-eslint-test-project/src/app/app.component.ts
0:0 error Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
The file does not match your project config: src/app/app.component.ts.
The file must be included in at least one of the projects provided
✖ 1 problem (1 error, 0 warnings)
If you search for "Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser." you end up in the documentation. The recommendation there is to create a separate tsconfig.eslint.json.
Thank you for submitting the issue, please see #86 (comment) for a brief personal update. I will endeavour to review this in the near future, if one of my co-contributors does not get to it first.
Please could you try out the latest version I just published v0.1.0-beta.1, this issue should no longer be present and it explicitly supports Angular 10.
Steps to reproduce:
ng new ng-eslint-test-projectng add @angular-eslint/schematics.eslintrc.jsfile:angular.json:Now running
ng lintproduces an error for each.tsfile:Version info
ng --versiongives:Workaround:
If you search for "Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser." you end up in the documentation. The recommendation there is to create a separate
tsconfig.eslint.json.Create one in the root:
Override parsing of
*.tsfiles with this file by editing.eslintrc.js:The text was updated successfully, but these errors were encountered: