1.1.0 • Published 2 years ago

vite-plugin-vue-pug-lint v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

vite-plugin-vue-pug-lint

npm GitHub license

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

File(s) to include when linting

exclude

File(s) to exclude when linting

License

MIT