-
-
Notifications
You must be signed in to change notification settings - Fork 675
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
Add TypeScript declarations for configs #2523
Comments
Hmm... This project is written in JavaScript, so my personal opinion is that I don't want to provide the |
I don't think this should be an issue. Our configs and external APIs have to conform to a special structure anyway, so this structure can also be defined and documented as a Given that more and more users of eslint-plugin-vue and ESLint in general are using TypeScript and are expecting things to just work, there is definitely a need for this. See also the positive reactions to this issue (1 👍 and 5 ❤️ at the time of writing, 3 weeks after opening the issue).
While I'm positive towards a migration to TypeScript, that is a very big endeavor and nothing that users will benefit from in the near future. So I think this issue shouldn't be blocked by a TypeScript migration. Once the codebase is rewritten in TypeScript, the |
I didn't think it would become a block. Providing type definitions from eslint-plugin-vue is fine, but I'm not really interested in maintaining it manually. |
Well, Since the type definitions probably won't change much over time, I don't see much value in having them maintained separately in |
@ota-meshi
using import tslint from 'typescript-eslint'
import vuePlugin from 'eslint-plugin-vue'
export default tslint.config(
...vuePlugin.configs['flat/recommended'], |
|
Thank you. I did a different approach and migrated from |
Extracted from #2166 (comment) (by @pauliesnug):
That is not a breaking change and thus does not have to wait for v10.
Note that type declarations are also missing for other parts of the plugin, see #2124.
The text was updated successfully, but these errors were encountered: