Migrating from eslint-plugin-vue-pug
eslint-plugin-vue-pug registers itself under the same vue-pug key, so the two plugins cannot be used together.
- Uninstall
eslint-plugin-vue-pugandvue-eslint-parser-template-tokenizer-pug, and remove theplugin:vue-pug/...entries from your config. This plugin needs a flat config. - Install and configure this plugin as in Getting started.
- Replace the old rules:
vue-pug/no-parsing-error→vue/no-parsing-error, which reports Pug syntax errors and is enabled by every eslint-plugin-vue config exceptflat/base.vue-pug/component-name-in-template-casing→ none:vue/component-name-in-template-casingcrashes on Pug templates and is turned off.vue-pug/no-pug-control-flowkeeps its id, but its options differ: the old rule takes no options and was enabled by the oldstrongly-recommendedconfigs; this one takes{ allow: [...] }and is in no config. See its docs.
The old configs turned some layout rules off everywhere (vue/html-indent, vue/html-self-closing, …). Here they stay on for HTML templates and are only suppressed inside Pug templates (except the crashing ones), with vue-pug/* rules taking their place.