-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Open
Labels
Description
Which @ngrx/* package(s) are the source of the bug?
eslint-plugin
Minimal reproduction of the bug/regression with instructions
https://github.com/ngrx/platform/blob/main/modules/eslint-plugin/src/configs/signals.ts#L29
We aren't using type-aware-linting and have a monorepo setup with "references", therefore we cannot import the eslint-plugin because it will throw:
Parsing error: ESLint was configured to run on `<tsconfigRootDir>/src/toast/toast-config.ts` using `parserOptions.project`: <tsconfigRootDir>/tsconfig.json
That TSConfig uses project "references" and doesn't include `<tsconfigRootDir>/src/toast/toast-config.ts` directly, which is not supported by `parserOptions.project`.
Either:
- Switch to `parserOptions.projectService`
- Use an ESLint-specific TSConfig
See the typescript-eslint docs for more info: https://typescript-eslint.io/troubleshooting/typed-linting#are-typescript-project-references-supported (eslint)
Expected behavior
Provide two eslint configs with and without type-information configurations.
Versions of NgRx, Angular, Node, affected browser(s) and operating system(s)
All latest on macOS
Other information
No response
I would be willing to submit a PR to fix this issue
- Yes
- No