Vite pug-lint plugin for vue single file components. If you used vue-pug-lint-loader and would like to have the same functionality you might need this plugin.
npm install vite-plugin-vue-pug-lint --save-dev
# or
yarn add vite-plugin-vue-pug-lint --dev
import { defineConfig } from 'vite';
import pugLint from 'vite-plugin-vue-pug-lint';
import vue from '@vitejs/plugin-vue';
export default defineConfig({
plugins: [
pugLint(),
vue(),
],
});
- Type:
string
- Default:
undefined
Custom config file path, equivalent to specifying -c option in pug-lint cli. If not provided, it looks for default config files, like described in pug-lint readme.
- Type:
FilterPattern
- Default:
/\.vue$/
File(s) to include when linting
- Type:
FilterPattern
- Default:
/node_modules/
File(s) to exclude when linting
MIT