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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Hey, I was trying to set up import/extensions rule. I wanted to make it so that only .vue files require an extension in the import.
import/extensions
This is similar to #583 , just for .vue
Test case:
{ 'import/extensions': ['error', 'never', { vue: 'always', js: 'always'}] }
import HelloWorld from '../components/HelloWorld' //vue file, no error import a from '../components/stuff' //js file, errors correctly
My package.json and .eslintrc.js when testing
The text was updated successfully, but these errors were encountered:
Same behavior for
"import/extensions": ["error", "ignorePackages", { "vue": "always", js: "always" }],
and for the two imports from the above questions.
Sorry, something went wrong.
See the test case that closes that similar issue: https://github.com/benmosher/eslint-plugin-import/pull/1010/files
you need to also configure the import/resolve extension for .vue.
import/resolve
.vue
No branches or pull requests
Hey, I was trying to set up
import/extensions
rule. I wanted to make it so that only .vue files require an extension in the import.This is similar to #583 , just for .vue
Test case:
My package.json and .eslintrc.js when testing
The text was updated successfully, but these errors were encountered: