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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add v8 beta blog post #9022
base: main
Are you sure you want to change the base?
docs: add v8 beta blog post #9022
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 on https://opencollective.com/typescript-eslint. |
✅ Deploy Preview for typescript-eslint ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
packages/website/blog/2022-09-18-automated-rule-docs-with-docusaurus-and-remark.md
Show resolved
Hide resolved
packages/website/blog/2024-04-30-announcing-typescript-eslint-v8-beta.md
Outdated
Show resolved
Hide resolved
However, ESLint v9 also includes a set of breaking changes that we added support for in typescript-eslint v8. | ||
See the [ESLint v9 release blog post](https://eslint.org/blog/2024/04/eslint-v9.0.0-released) and for more details. | ||
|
||
### ⏳ Project Service |
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.
I think we should consider project service stability & resolved naming a big enough feature to block releasing this blog post. #9004
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.
Hmm, now that all the planned new features for it are in (allowDefaultProjectForFiles
, defaultProject
, maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING
) are in, we could give a big caveat/notice here that it's all available under the old EXPERIMENTAL_useProjectService
name.
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.
packages/website/blog/2024-04-30-announcing-typescript-eslint-v8-beta.md
Outdated
Show resolved
Hide resolved
packages/website/blog/2024-04-30-announcing-typescript-eslint-v8-beta.md
Outdated
Show resolved
Hide resolved
packages/website/blog/2024-04-30-announcing-typescript-eslint-v8-beta.md
Outdated
Show resolved
Hide resolved
Had a read through this (and checked for typos) and looks good - can't wait! :D |
packages/website/blog/2024-04-30-announcing-typescript-eslint-v8-beta.md
Outdated
Show resolved
Hide resolved
packages/website/blog/2024-04-30-announcing-typescript-eslint-v8-beta.md
Outdated
Show resolved
Hide resolved
packages/website/blog/2024-04-30-announcing-typescript-eslint-v8-beta.md
Outdated
Show resolved
Hide resolved
packages/website/blog/2024-04-30-announcing-typescript-eslint-v8-beta.md
Outdated
Show resolved
Hide resolved
packages/website/blog/2024-04-30-announcing-typescript-eslint-v8-beta.md
Outdated
Show resolved
Hide resolved
packages/website/blog/2024-04-30-announcing-typescript-eslint-v8-beta.md
Outdated
Show resolved
Hide resolved
packages/website/blog/2024-04-30-announcing-typescript-eslint-v8-beta.md
Outdated
Show resolved
Hide resolved
packages/website/blog/2024-04-30-announcing-typescript-eslint-v8-beta.md
Outdated
Show resolved
Hide resolved
packages/website/blog/2024-04-30-announcing-typescript-eslint-v8-beta.md
Outdated
Show resolved
Hide resolved
Co-authored-by: Kirk Waiblinger <kirk.waiblinger@gmail.com>
packages/website/blog/2024-04-30-announcing-typescript-eslint-v8-beta.md
Outdated
Show resolved
Hide resolved
…v8-beta.md Co-authored-by: Kirk Waiblinger <kirk.waiblinger@gmail.com>
packages/website/blog/2024-04-30-announcing-typescript-eslint-v8-beta.mdx
Outdated
Show resolved
Hide resolved
packages/website/blog/2024-05-11-announcing-typescript-eslint-v8-beta.mdx
Outdated
Show resolved
Hide resolved
packages/website/blog/2024-05-11-announcing-typescript-eslint-v8-beta.mdx
Outdated
Show resolved
Hide resolved
packages/website/blog/2024-05-11-announcing-typescript-eslint-v8-beta.mdx
Show resolved
Hide resolved
packages/website/blog/2024-05-11-announcing-typescript-eslint-v8-beta.mdx
Outdated
Show resolved
Hide resolved
packages/website/blog/2024-05-11-announcing-typescript-eslint-v8-beta.mdx
Outdated
Show resolved
Hide resolved
packages/website/blog/2024-05-11-announcing-typescript-eslint-v8-beta.mdx
Outdated
Show resolved
Hide resolved
packages/website/blog/2024-05-11-announcing-typescript-eslint-v8-beta.mdx
Outdated
Show resolved
Hide resolved
packages/website/blog/2024-05-11-announcing-typescript-eslint-v8-beta.mdx
Show resolved
Hide resolved
packages/website/blog/2024-05-11-announcing-typescript-eslint-v8-beta.mdx
Show resolved
Hide resolved
packages/website/blog/2024-05-11-announcing-typescript-eslint-v8-beta.mdx
Show resolved
Hide resolved
packages/website/blog/2024-05-11-announcing-typescript-eslint-v8-beta.mdx
Show resolved
Hide resolved
Co-authored-by: Kirk Waiblinger <kirk.waiblinger@gmail.com> Co-authored-by: Brad Zacher <brad.zacher@gmail.com>
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.
typescript-eslint v7 was our first version that supported ESLint's [new "flat" config file format](https://eslint.org/docs/latest/use/configure/configuration-files), which was already available in ESLint v8. | ||
ESLint v9 still supports ESLint's [older legacy config file format](https://eslint.org/docs/latest/use/configure/configuration-files-deprecated) so our tooling does as well. | ||
However, ESLint v9 also includes a set of breaking changes that we added support for in typescript-eslint v8. | ||
See the [ESLint v9 release blog post](https://eslint.org/blog/2024/04/eslint-v9.0.0-released) and 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.
See the [ESLint v9 release blog post](https://eslint.org/blog/2024/04/eslint-v9.0.0-released) and for more details. | |
See the [ESLint v9 release blog post](https://eslint.org/blog/2024/04/eslint-v9.0.0-released) for more details. |
// Remove this line | ||
project: true, | ||
// Add line | ||
projectService: true, | ||
tsconfigRootDir: import.meta.dirname, |
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.
This is currently rendered as:
… which is a bit confusing. Either both comments should display verbatim, or both should be rendered like a diff. I saw below that the latter can be achieved like this:
// Remove this line | |
project: true, | |
// Add line | |
projectService: true, | |
tsconfigRootDir: import.meta.dirname, | |
// Remove this line | |
project: true, | |
// Added lines start | |
projectService: true, | |
tsconfigRootDir: import.meta.dirname, | |
// Added lines end |
|
||
Typed linting for out-of-project files can be done by specifying two properties of a `parserOptions.projectService` object: | ||
|
||
- `allowDefaultProjectForFiles`: a glob of a small number of out-of-project files to enable a slower default project on |
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.
Why is it slow? I don't quite get it from the context; maybe that can be improved somehow.
PR Checklist
Overview
Adds a preliminary blog post announcing the v8 beta, including:
As with v6's #6515, uses ⌛ to indicate parts that aren't yet merged in.
Sending for review now though I believe it should be blocked on a couple of other items, commented inline. I think it's ready for review in the meantime so we can ship it ASAP once those items are resolved.
💖