Skip to content
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

Migrate from @typescript-eslint/* packages to typescript-eslint #361

Open
karlhorky opened this issue Apr 8, 2024 · 0 comments
Open

Migrate from @typescript-eslint/* packages to typescript-eslint #361

karlhorky opened this issue Apr 8, 2024 · 0 comments
Assignees

Comments

@karlhorky
Copy link
Member

karlhorky commented Apr 8, 2024

https://typescript-eslint.io/blog/announcing-typescript-eslint-v7/#new-features---flat-config-support

Partial info from blog post above:

With v7 we're releasing a new package, typescript-eslint. This package can be imported within your flat config to access our configs, plugin, and parser. This package also exports a utility function called config which will allow you to write type-checked configuration files!

Switching to typescript-eslint

Because this new package includes dependencies on our plugin and parser, you can replace those dependencies entirely:

pnpm remove @typescript-eslint/parser @typescript-eslint/eslint-plugin
pnpm add typescript-eslint

This also allows for a tseslint.config() helper:

eslint.config.js

import tseslint from 'typescript-eslint';

export default tseslint.config(
  // config here
);

We may also be able to get rid of some other libraries that we have, eg. if we're using tsutils or similar old packages:

@karlhorky karlhorky self-assigned this Apr 8, 2024
@karlhorky karlhorky changed the title Migrate from @typescript-eslint/* plugins to typescript-eslint Migrate from @typescript-eslint/* packages to typescript-eslint May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant