1.8.1 • Published 3 years ago

vite-plugin-eslint v1.8.1

Weekly downloads
69
License
MIT
Repository
github
Last release
3 years ago

vite-plugin-eslint

npm npm peer dependency version npm peer dependency version GitHub license

ESLint plugin for vite.

Install

npm install eslint vite-plugin-eslint --save-dev
# or
yarn add eslint vite-plugin-eslint -D

Usage

import { defineConfig } from 'vite'
import eslint from 'vite-plugin-eslint'

export default defineConfig({
  plugins: [eslint()]
})

Options

You can pass eslint options.

cache

  • Type: boolean
  • Default: false

Decrease execution time, Beta Cache now correctly recognizes file changes, you can try it out.

fix

  • Type: boolean
  • Default: false

Auto fix source code.

eslintPath

  • Type: string
  • Default: eslint

Path to eslint instance that will be used for linting.

lintOnStart

  • Type: boolean
  • Default: false

Check all matching files on project startup, too slow, turn on discreetly.

include

  • Type: string | string[]
  • Default: ['**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx', '**/*.vue', '**/*.svelte']

A single file, or array of files, to include when linting.

exclude

  • Type: string | string[]
  • Default: ['**/node_modules/**']

A single file, or array of files, to exclude when linting.

formatter

  • Type: string | ESLint.Formatter['format']
  • Default: stylish

Custom error formatter or the name of a built-in formatter.

emitWarning

  • Type: boolean
  • Default: true

The warings found will be printed.

emitError

  • Type: boolean
  • Default: true

The errors found will be printed.

failOnWarning

  • Type: boolean
  • Default: false

Will cause the module build to fail if there are any warnings, based on emitWarning.

failOnError

  • Type: boolean
  • Default: true

Will cause the module build to fail if there are any errors, based on emitError.

License

MIT

@yangfei-ui/react-window-table@cc-design/cestc-vue-scripts@cc-design/web-vue@belaryc/b-libvue3-eslint-config@vri/config-vite@infinitebrahmanuniverse/nolb-vite-plugin-e@cestc-design/cestc-vue-scripts@cestc-design/web-vue@everything-registry/sub-chunk-3060@zf-dbs/vite-define-configindustry-uitalentorg-profile-editorwind-components-vuewinkey-init-config-vitewxfe-ytianvue-grid-layout-splitvite-configvue-adocvue-cli-plugin-vitevue-cli-plugin-vite-qiankunvid-studiokelt-ui-kit-reactjust-nodeslapwingindustry-ui-test@whoj/nuxt-lint@wu-component/wu-cli@uni-web-lab/vue3-spa-template@tmesoft/data-screen-show@tmesoft/print-qrcode@tmesoft/2d-teaching-center@tmesoft/ai-tools-core@tmesoft/data-screen-set@yehudagold/nx-template@yangzw/bruce-app@zf-dbs/vite@zf-dbs/vite-config@teller-protocol/kyberswap-widgets@zxscls/plugin-builderai-tools-coreapi-setting@cyberutopian/badger@eipgrid/bje@mahdiarjangi/bobrossorganetvywts-chunk-file-uploadyjrcli-envxymm-clizf-vue-web-vite@linker-design/cli@linkysolucoes/eslint-configmsp-vmsp-v3modelencemod-buildmocks-for-everyonemgltestoura-node-editornypr-design-system-vuereact-lib-icons-component-testesevenlab-boilerplate-apppine-libsperejro-helpers-librarypg-vue-scriptsqianxun-eslint-config-customqxy-appreact-uploadify@padcom/vite-config-default@padcom/vite-default-config@nuxtjs/eslint-module@dreamjser/h5-vite-cli@dword-design/base-config-web-extension@emhamzahazeen/config-vite@hoppscotch/ui@eipgrid/amadeus@hdchan/create-app-cli@elyspio/vite-eslint-config@stackworx/vite-react-scriptseipgrid-remote1dy-virtual-tableeslint-plugin-lendifeg-vuebase@mediamanager.io/embed-libraries@cherry-design/vue-scripts@baic/yolk-umi@roshan-labs/eslint-modulecam-uicommon-module-uicreditu-design-system-3creditu-design-system-4data-screen-showdata-center-permissiondav-nuxt-3-uikitbruce-clibobrsbfg-uikitblkboxui@arco-design/arco-vue-scripts
1.8.1

3 years ago

1.8.0

3 years ago

1.7.0

3 years ago

1.6.1

3 years ago

1.6.0

4 years ago

1.5.2

4 years ago

1.5.1

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.3

4 years ago

1.1.1

4 years ago

1.1.2

4 years ago

1.1.0

5 years ago

1.0.5

5 years ago