ESLint plugin for vite.
npm install vite-plugin-eslint
!npm peer dependency version
!npm peer dependency version

ESLint plugin for vite.
``bash`
npm install eslint vite-plugin-eslint --save-devor
yarn add eslint vite-plugin-eslint -D
`js
import { defineConfig } from 'vite'
import eslint from 'vite-plugin-eslint'
export default defineConfig({
plugins: [eslint()]
})
`
You can pass eslint options.
- Type: booleanfalse
- Default:
Decrease execution time, Beta Cache now correctly recognizes file changes, you can try it out.
- Type: booleanfalse
- Default:
Auto fix source code.
- Type: stringeslint
- Default:
Path to eslint instance that will be used for linting.
- Type: booleanfalse
- Default:
Check all matching files on project startup, too slow, turn on discreetly.
- Type: string | string[]['/.js', '/.jsx', '/.ts', '/.tsx', '/.vue', '/.svelte']
- Default:
A single file, or array of files, to include when linting.
- Type: string | string[]['/node_modules/']
- Default:
A single file, or array of files, to exclude when linting.
- Type: string | ESLint.Formatter['format']stylish
- Default:
Custom error formatter or the name of a built-in formatter.
- Type: booleantrue
- Default:
The warings found will be printed.
- Type: booleantrue
- Default:
The errors found will be printed.
- Type: booleanfalse
- Default:
Will cause the module build to fail if there are any warnings, based on emitWarning.
- Type: booleantrue
- Default:
Will cause the module build to fail if there are any errors, based on emitError`.
MIT