1.8.1 • Published 2 years ago

vite-plugin-eslint v1.8.1

Weekly downloads
69
License
MIT
Repository
github
Last release
2 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-ui@nuxtjs/eslint-module@padcom/vite-default-config@padcom/vite-config-defaulttalentorg-profile-editorsevenlab-boilerplate-apptvywvite-configvite-config-commonvid-studiots-chunk-file-uploadvue-cli-plugin-vitevue-cli-plugin-vite-qiankunvue-grid-layout-splitxymm-cliyjrcli-envwxfe-ytianzf-vue-web-vitewinkey-init-config-vitewind-components-vue@qqt-product/directive@roshan-labs/eslint-module@stackworx/vite-react-scripts@sonli-design/sun-cli@spazious/vite-config@whoj/nuxt-lint@wu-component/wu-cli@teller-protocol/kyberswap-widgets@uni-web-lab/vue3-spa-template@zf-dbs/vite@zf-dbs/vite-config@twoavy/twoavy-mqtt@yehudagold/nx-template@zxscls/plugin-builder@assettv/ping@baic/yolk-umi@bdlite/clibruce-cli@cherry-design/vue-scripts@chamn/build-scriptcam-ui@cmstops/arco-vue-scriptsapi-settingindustry-ui-test@arco-design/arco-vue-scripts@born3am/eslint-configbfg-uikitblkboxuijust-nodes@crazy_pig/lkelement@dangojs/vue-scripts@dangojs/digit-vue-scripts@dilesoft/open7bh@dope-js/core@eipgrid/amadeus@eipgrid/bje@dword-design/base-config-web-extension@elyspio/vite-eslint-config@emhamzahazeen/config-vitedav-nuxt-3-uikitdata-center-permission@yangzw/bruce-app@alvarium/document-signature@alvarium/events-widget@alvarium/bank-accountscommon-module-uinypr-design-system-vuecreditu-design-system-3creditu-design-system-4@darkobits/ts@cryptohubltd/kyberswap-widgetmsp-vmsp-v3plxnner@hdchan/create-app-clipg-vue-scripts@hoppscotch/uidy-virtual-tableqxy-appeipgrid-remote1@kongjs/compileeslint-plugin-lendi@jvbf2e/jvb-design-vue-scripts@jvbf2e/jvb-vue-scripts@linker-design/cli@linkysolucoes/eslint-config@mediamanager.io/embed-libraries@kyberswap/widgets@mostlyserious/vitepack
1.8.1

2 years ago

1.8.0

2 years ago

1.7.0

2 years ago

1.6.1

2 years ago

1.6.0

2 years ago

1.5.2

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.4.0

2 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.3

3 years ago

1.1.1

3 years ago

1.1.2

3 years ago

1.1.0

3 years ago

1.0.5

3 years ago