johnn3volta-vue-extension
v1.0.0
Published
Custom ESLint plugin for Vue files.
Downloads
2
Readme
eslint-plugin-vue-extension
ESLint plugin to ensure .vue extensions in import statements for Vue.js projects.
🚀 Features
- Automatically checks for missing
.vue
extensions in import statements. - Offers
--fix
option to automatically add missing.vue
extensions.
📦 Installation
Ensure you have ESLint installed:
npm install eslint --save-dev
npm install eslint-plugin-vue-extension --save-dev
{
"plugins": [
"vue-extension"
],
"rules": {
"vue-extension/vue-extension-rule": "error"
}
}
⚙️ Configuration This plugin comes with a vue-extension-rule rule, which can be configured as follows:
"vue-extension/vue-extension-rule": ["error", { "fix": true }]