Community Feedback: Project Service APIs #8030
Replies: 7 comments 23 replies
-
FYI: I tested it in |
Beta Was this translation helpful? Give feedback.
-
I tried it out on a personal project (.eslintrc.json, tsconfig.json) and the lint time increased from 31 seconds to 34 seconds. (Using @typescript-eslint/eslint-plugin 6.17.0.) Is there any logging I can enable? For example, to see if the same service is used for all files? |
Beta Was this translation helpful? Give feedback.
-
I tried this out on my monorepo via this commit, but I got this error:
For reference, the CI run is here: https://github.com/IsaacScript/isaacscript/actions/runs/7415844579/job/20179746969 |
Beta Was this translation helpful? Give feedback.
-
Latest release (v7.8.0) gave me: "Too many files (>8) have matched the default project." See: https://github.com/tstyche/tstyche/actions/runs/8893774897/job/24420694811 This is GHA failure. I think it is worth taking a look at it, because the error is somehow strangely constructed (it grows and grows and grows ...) Hard to read the message, but looks like all files in the repo are reported as belonging to the default project. Hm.. That sounds incorrect. There should be none. I was using |
Beta Was this translation helpful? Give feedback.
-
Hi @JoshuaKGoldberg (and thanks for your work on typescript-eslint I tried this, using v8-alpha.20, on an Angular project, and saw some differences between Basically, typesript-eslint doesn't pick the correct tsconfig for linting the files when using I suspect this is an issue with the underlying APIs, as we saw the same thing in our IDEs (VS Code or Webstorm), so maybe there is nothing to do for typescript-eslint. Or maybe I missed an obvious configuration to add somewhere, so I thought it was worth a shot. As a minimal repro, I pushed this repo (without Angular, just 2 typescript files): https://github.com/cexbrayat/tseslint-config-repro
You can run:
to see the failure. |
Beta Was this translation helpful? Give feedback.
-
Hey, what are the default values of |
Beta Was this translation helpful? Give feedback.
-
Hi! I'm forwarding this question from project service API: import-js/eslint-import-resolver-typescript#282 (comment)
Which was asked in answer this question of mine concerning
|
Beta Was this translation helpful? Give feedback.
-
Back in Relative TSConfig Projects with
parserOptions.project = true
> Project Services, we'd mentioned we're working on a replacement forparserOptions.project
:The
EXPERIMENTAL_useProjectService
parser API is that experimental alternative toparserOptions.project
. We hope it brings simpler ESLint configurations, mildly faster lint times, and more closely aligned type information for lint rules to what editors produce.As with any big new API, there's only so much testing we can do on our own without the community. Please try out the project service API and post back here with how it goes for you! We'd love to know: does it indeed solve those configuration and/or performance problems for you? Are there any bugs? Was it a smash success? Any and all posts about how it goes are welcome!♥️
Beta Was this translation helpful? Give feedback.
All reactions