vite-plugin-vue-pug-lint
v1.1.0
Published
vite pug-lint plugin for vue single file components
Downloads
9
Maintainers
Readme
vite-plugin-vue-pug-lint
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.
Install
npm install vite-plugin-vue-pug-lint --save-dev
# or
yarn add vite-plugin-vue-pug-lint --dev
Usage
import { defineConfig } from 'vite';
import pugLint from 'vite-plugin-vue-pug-lint';
import vue from '@vitejs/plugin-vue';
export default defineConfig({
plugins: [
pugLint(),
vue(),
],
});
Options
configFile
- 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.
include
- Type:
FilterPattern
- Default:
/\.vue$/
File(s) to include when linting
exclude
- Type:
FilterPattern
- Default:
/node_modules/
File(s) to exclude when linting
License
MIT