You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The plugin does not work well with ESLint TypeScript configuration files (i.e. eslint.config.ts instead of eslint.config.js) because there is no type declaration in the package.
The following TypeScript error is raised:
error TS7016: Could not find a declaration file for module '@intlify/eslint-plugin-vue-i18n'
Your take on the correct solution to problem.
Because the plugin is already written in TypeScript, it should probably work with the following modifications:
In tsconfig.build.json, set compilerOptions.declaration to true
In package.json, set types to dist/index.d.ts
Additional context
A workaround for the issue is to add a dummy declaration file eslint-plugin-vue-i18n.d.ts that looks like this:
Tell us about your environment
The problem you want to solve.
The plugin does not work well with ESLint TypeScript configuration files (i.e.
eslint.config.ts
instead ofeslint.config.js
) because there is no type declaration in the package.The following TypeScript error is raised:
Your take on the correct solution to problem.
Because the plugin is already written in TypeScript, it should probably work with the following modifications:
tsconfig.build.json
, setcompilerOptions.declaration
totrue
package.json
, settypes
todist/index.d.ts
Additional context
A workaround for the issue is to add a dummy declaration file
eslint-plugin-vue-i18n.d.ts
that looks like this:Of course, having the real type declarations would be better.
The text was updated successfully, but these errors were encountered: