The documentation states that in order to use svg-icon library we should do the following:
npm install vue-svgicon --save-dev
and use like this:
import SvgIcon from 'vue-svgicon'
// Default tag name is 'svgicon'
Vue.use(SvgIcon, {
tagName: 'svgicon'
})
using this example results in eslint error:
ESLint: 'vue-svgicon' should be listed in the project's dependencies, not devDependencies (no import/no-extraneous-dependencies)
Is the only workaround is to disable eslint for the next line?
with:
// eslint-disable-next-line import/no-extraneous-dependencies
The documentation states that in order to use svg-icon library we should do the following:
npm install vue-svgicon --save-dev
and use like this:using this example results in eslint error:
ESLint: 'vue-svgicon' should be listed in the project's dependencies, not devDependencies (no import/no-extraneous-dependencies)
Is the only workaround is to disable eslint for the next line? with:
// eslint-disable-next-line import/no-extraneous-dependencies