MMF-FE / svgicon

SVG icon components and tool set
https://mmf-fe.github.io/svgicon
MIT License
922 stars 95 forks source link

docs and eslint issue #109

Closed grount closed 4 years ago

grount commented 4 years ago

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

Allenice commented 4 years ago

You can use Custom icon content format.