@ghostvue/eslint-plugin
v0.4.0
Published
ESLint rules that check GhostVue component props, slots, and v-model bindings in Vue templates against the component manifests.
Readme
@ghostvue/eslint-plugin
ESLint rules that check Ghost* component usage in Vue templates against the
GhostVue component manifests:
ghostvue/no-unknown-propsghostvue/no-unknown-slotsghostvue/no-undeclared-v-model
Install
pnpm add -D @ghostvue/eslint-plugin eslint eslint-plugin-vueESLint ^9.0.0 || ^10.0.0 and vue-eslint-parser ^10.0.0 are peer
dependencies; eslint-plugin-vue's flat configs set up the parser.
Usage
// eslint.config.js
import ghostvue from '@ghostvue/eslint-plugin'
import vue from 'eslint-plugin-vue'
export default [
...vue.configs['flat/recommended'],
ghostvue.configs.recommended,
]configs.recommended enables all three rules as errors for **/*.vue.
Documentation
ghostvue.dev: see ESLint plugin for rule details.
