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
I get the following error when trying to use the nx lint exector:
Error: You have attempted to use the lint rule "@typescript-eslint/restrict-template-expressions" which requires the full TypeScript type-checker to be available, but you do not have "parserOptions.project" configured to point at your project tsconfig.json files in the relevant TypeScript file "overrides" block of your ESLint config "<path to eslint config>/.eslintrc.cjs"
Occurred while linting <path to file in directory>
Please see https://nx.dev/recipes/tips-n-tricks/eslint for full guidance on how to resolve this issue.
Expected Behavior
I expect projectService option (what is supposed to replace project in eslint config) to work as expected and not throw an error about project not existing
Error: You have attempted to use the lint rule "@typescript-eslint/restrict-template-expressions" which requires the full TypeScript type-checker to be available, but you do not have "parserOptions.project" configured to point at your project tsconfig.json files in the relevant TypeScript file "overrides" block of your ESLint config "<path to eslint config>/.eslintrc.cjs"
Occurred while linting <path to file in directory>
Package Manager Version
No response
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
No response
The text was updated successfully, but these errors were encountered:
I would personally recommend migrating to flat config (eslint.config.js) at the same time as moving to typescript-eslint v8 and eslint v9, rather than using this new construct with the legacy eslintrc config style, it's a combination that is less likely to be tested and covered by the various projects in question. I'm afraid it is a combination that accordingly won't be a priority for us to look into at this time. If you still run into any issues once on flat config please let us know
(PS .eslintrc.js has never been something we've officially supported as a combination with .eslintrc.json like you have here, so again you are a bit off the beaten track with this)
Current Behavior
Hi all. I am trying to migrate to typescript-eslint v8 and leverage the new projectService configuration. However when I update my .eslintrc.cjs with the following syntax:
And a typescript-eslint rule in my global eslint config file such as
I get the following error when trying to use the nx lint exector:
Expected Behavior
I expect projectService option (what is supposed to replace project in eslint config) to work as expected and not throw an error about project not existing
GitHub Repo
No response
Steps to Reproduce
See description of of current behavior
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: