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

Where are the remaining types from 1.x? #32

Open
alex-kinokon opened this issue Nov 24, 2023 · 1 comment
Open

Where are the remaining types from 1.x? #32

alex-kinokon opened this issue Nov 24, 2023 · 1 comment

Comments

@alex-kinokon
Copy link

Question: I upgraded from 1.x to 2.0 and noticed the types of a lot of plugins are no longer available in 2.0. Do you plan to publish the rest of the types or I should stay on 1.x?

@Shinigami92
Copy link
Contributor

Question: I upgraded from 1.x to 2.0 and noticed the types of a lot of plugins are no longer available in 2.0. Do you plan to publish the rest of the types or I should stay on 1.x?

Feel free to stay in v1 if you need to, but you wont get support anymore of upcoming features and type enhancements
v2 now supports that plugin authors can maintain their own types

So in the future you could e.g. do something like this:

// @ts-check
const { defineConfig } = require('eslint-define-config');

/// <reference types="<packagename-of-eslint-plugin/eslint-define-config>" />

module.exports = defineConfig({
  // ...
});

Obviously the plugin authors needs to be notified and catch up with the new system

Which plugin support are you missing? Please go to their repository and open an issue or even PR to add support.
Feel free to link issues here in this one.

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

2 participants