vite-plugin-vue-pug-lint is a Vite plugin that integrates pug-lint into Vue single file components (SFCs), providing linting for Pug templates during development and build. The current version 1.1.0 is stable and supports Vite 2.x and pug-lint 2.6.0 as peer dependencies. It is a direct replacement for the Webpack-based vue-pug-lint-loader, offering similar functionality with a simple plugin API. The plugin allows custom configuration via configFile option and filter patterns for include/exclude. It ships TypeScript types and is actively maintained.
npm install vite-plugin-vue-pug-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to install and configure vite-plugin-vue-pug-lint with custom options in a Vite project using Vue.
Upgrade to a newer version if available, or stay on Vite 2
Evaluate alternatives like eslint-plugin-vue-pug
Use include option to add extra patterns: /\.pug$/
Ensure pugLint() is called before vue()
npm install pug-lint --save-dev
Use default import: import pugLint from 'vite-plugin-vue-pug-lint'
Check the path or remove configFile option to use default lookup