We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import mitt, { Emitter } from 'mitt'
gives me eslint error Emitter not found in 'mitt' import/named (https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/named.md)
error Emitter not found in 'mitt' import/named
Where it should work (see: https://github.com/developit/mitt/blob/master/src/index.ts#L15).
Any ideas what is going wrong?
// .eslintrc.js module.exports = { root: true, env: { browser: true, node: true, }, extends: [ '@nuxtjs/eslint-config-typescript', 'prettier', 'plugin:prettier/recommended', 'plugin:nuxt/recommended', ], plugins: ['prettier'], rules: {}, }
The text was updated successfully, but these errors were encountered:
This is the expected behavior of eslint-plugin-import, see this PR: import-js/eslint-plugin-import#1726
eslint-plugin-import
The recommendation from the maintainers of eslint-plugin-import is to use type imports, or disable import/named globally:
type
import/named
import mitt from 'mitt' import type { Emitter } from 'mitt' // this is a type-only import and will be ignored by `import/named`
Sorry, something went wrong.
No branches or pull requests
import mitt, { Emitter } from 'mitt'
gives me eslint
error Emitter not found in 'mitt' import/named
(https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/named.md)Where it should work (see: https://github.com/developit/mitt/blob/master/src/index.ts#L15).
Any ideas what is going wrong?
The text was updated successfully, but these errors were encountered: