eslint-plugin-import-template
v1.0.2
Published
ESLint plugin for checking unresolved static asset paths in Vue SFC templates.
Maintainers
Readme
eslint-plugin-import-template
An ESLint plugin for Vue SFC templates that checks unresolved static asset paths in src and href attributes.
It helps find missing local images, icons, and other template assets referenced by Vue single-file components before they become runtime 404 errors.
Install
npm install eslint-plugin-import-template --save-devUsage
module.exports = {
plugins: ['import-template'],
rules: {
'import-template/vue-template-no-unresolved': 'error',
},
};