vite-plugin-vue-pug-lint
vite pug-lint plugin for vue single file components
2,268
1
| Install | |
|---|---|
npm install vite-plugin-vue-pug-lint |
|
| Latest Version: | 1.1.0 |
| License: | MIT |
| Last Updated: | Feb 13, 2022 |
| Links: | GitHub · npm |
Maintainer: brzezinskimarcin
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
Related Packages
vite-plugin-checker
Vite plugin that runs TypeScript type checker on a separate process.
133,975,562
1,242
Version History
| Version | Released | License |
|---|---|---|
| 1.1.0 | MIT |