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

eslint | public files imports #8

Open
f1eeman opened this issue Dec 11, 2022 · 2 comments
Open

eslint | public files imports #8

f1eeman opened this issue Dec 11, 2022 · 2 comments

Comments

@f1eeman
Copy link

f1eeman commented Dec 11, 2022

image

<v-img :src="vueLogo" width="100" />

image
It is necessary to set the eslint config for importing files from the public directory

@logue
Copy link
Owner

logue commented Dec 19, 2022

Assuming /cdnlogo.com_vuetify.svg is in the project root?
For this usage, please enter <v-img src="/cdnlogo.com_vuetify.svg" /> directly without using the import statement.

@f1eeman
Copy link
Author

f1eeman commented Dec 19, 2022

Assuming /cdnlogo.com_vuetify.svg is in the project root?

./public/cdnlogo.com_vuetify.svg
./src

For this usage, please enter directly without using the import statement.
I suppose, it may once happen that the users of such sample template template would have to dynamically determine relevant images. In this case, eslint that is bot set, would not interfere with work

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