prc b6c02717e6 Upload complete no-internet building environment. | 1 жил өмнө | |
---|---|---|
.. | ||
dist | 1 жил өмнө | |
LICENSE | 1 жил өмнө | |
README.md | 1 жил өмнө | |
package.json | 1 жил өмнө |
ESLint plugin for vite.
npm install eslint vite-plugin-eslint --save-dev
# or
yarn add eslint vite-plugin-eslint -D
import { defineConfig } from 'vite'
import eslint from 'vite-plugin-eslint'
export default defineConfig({
plugins: [eslint()]
})
You can pass eslint options.
cache
boolean
false
Decrease execution time, Beta
Cache now correctly recognizes file changes, you can try it out.
fix
boolean
false
Auto fix source code.
eslintPath
string
eslint
Path to eslint
instance that will be used for linting.
lintOnStart
boolean
false
Check all matching files on project startup, too slow, turn on discreetly.
include
string | string[]
['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx', '**/*.vue', '**/*.svelte']
A single file, or array of files, to include when linting.
exclude
string | string[]
['**/node_modules/**']
A single file, or array of files, to exclude when linting.
formatter
string | ESLint.Formatter['format']
stylish
Custom error formatter or the name of a built-in formatter.
emitWarning
boolean
true
The warings found will be printed.
emitError
boolean
true
The errors found will be printed.
failOnWarning
boolean
false
Will cause the module build to fail if there are any warnings, based on emitWarning
.
failOnError
boolean
true
Will cause the module build to fail if there are any errors, based on emitError
.
MIT