Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
docs: blog post on parserOptions.projectService#8031
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
docs: blog post on parserOptions.projectService#8031
Conversation
Thanks for the PR,@JoshuaKGoldberg! typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community. The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately. Thanks again! 🙏Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently onhttps://opencollective.com/typescript-eslint. |
netlifybot commentedDec 6, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
✅ Deploy Preview fortypescript-eslint ready!
To edit notification comments on pull requests, go to yourNetlify project configuration. |
Uh oh!
There was an error while loading.Please reload this page.
packages/website/blog/2024-03-01-parser-options-project-service.md OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
packages/website/blog/2024-03-01-parser-options-project-service.md OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
packages/website/blog/2024-03-01-parser-options-project-service.md OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
packages/website/blog/2024-03-01-parser-options-project-service.md OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
packages/website/blog/2024-03-01-parser-options-project-service.md OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
packages/website/blog/2024-03-01-parser-options-project-service.md OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
packages/website/blog/2024-03-01-parser-options-project-service.md OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
packages/website/blog/2024-03-01-parser-options-project-service.md OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
packages/website/blog/2024-03-01-parser-options-project-service.md OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
packages/website/blog/2024-03-01-parser-options-project-service.md OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
packages/website/blog/2024-03-01-parser-options-project-service.md OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
packages/website/blog/2024-03-01-parser-options-project-service.md OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Great to see exciting features
packages/website/blog/2024-03-01-parser-options-project-service.md OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
packages/website/blog/2024-03-01-parser-options-project-service.md OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
packages/website/blog/2024-03-01-parser-options-project-service.md OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
packages/website/blog/2024-03-01-parser-options-project-service.md OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Joshua Chen <sidachen2003@gmail.com>
packages/website/blog/2024-03-01-parser-options-project-service.md OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
nx-cloudbot commentedMay 11, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
View yourCI Pipeline Execution ↗ for commitf08e16f.
☁️Nx Cloud last updated this comment at |
Status update: this is roughly ready for reviewexcept |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Changes here are unintentional merge artifacts. Will revert.
- ESLint's `--fix` mode breaks type information after the first run ([#9577](https://github.com/typescript-eslint/typescript-eslint/pull/9577)) | ||
- Extra file extensions, such as those used by `.svelte` and `.vue`, are not supported ([#9504](https://github.com/typescript-eslint/typescript-eslint/issues/9504)) | ||
typescript-eslint's single-run inference enables uses common heuristics such as checking for `'--fix'` in `process.argv`, the presence of `process.env.CI`, and the presence of `parserOptions.extraFileExtensions`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
nit: typo, I made a guess at the intended wording:
typescript-eslint's single-run inferenceenablesuses common heuristics such as checking for`'--fix'` in`process.argv`, the presence of`process.env.CI`, and the presence of`parserOptions.extraFileExtensions`. | |
typescript-eslint's single-run inference uses common heuristics such as checking for`'--fix'` in`process.argv`, the presence of`process.env.CI`, and the presence of`parserOptions.extraFileExtensions`. |
packages/website/blog/2024-08-25-parser-options-project-service.mdx OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
As of typescript-eslint@8.33.0, we've also extracted most of the Project Service code into a standalone [`@typescript-eslint/project-service`](/packages/project-service) package. | ||
It has no dependencies on ESLint and is designed to be usable for any linter to enable TypeScript's Project Service API for typed linting. | ||
See [Packages > Project Service](/packages/project-service) for more details. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Note that#10383 (comment) proposes a pretty big shake-up in other packages. I don't think it impacts this though. Just an FYI :)
Uh oh!
There was an error while loading.Please reload this page.
PR Checklist
Overview
Adds a blog post that describes using
parserOptions.projectService
(what we previously calledparserOptions.EXPERIMENTAL_useProjectService
). The flow is roughly:tsconfig.eslint.json
sThis was previously blocked on:
a new, not-yet-createdhttps://github.com/typescript-eslint/project-apis-performance-comparisonhttps://github.com/typescript-eslint/performanceThis previously had a lot more content on single-run mode and performance comparisons. Both are removed for a more streamlined blog post.
💖