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-studio@cmstops/arco-vue-scripts@cryptohubltd/kyberswap-widget@crazy_pig/lkelement@dilesoft/open7bh@dope-js/core@roshan-labs/eslint-modulekelt-ui-kit-reactjust-nodeslapwing@cyberutopian/badger@eipgrid/bje@mahdiarjangi/bobrossorganetvywts-chunk-file-upload@alvarium/bank-accounts@alvarium/document-signature@alvarium/events-widget@arco-design/arco-vue-scripts@assettv/ping@baic/yolk-umi@cherry-design/vue-scripts@chamn/build-script@born3am/eslint-config@darkobits/ts@dangojs/digit-vue-scripts@dangojs/vue-scriptsyjrcli-envxymm-clizf-vue-web-vite@dword-design/base-config-web-extension@hdchan/create-app-cli@hoppscotch/ui@eipgrid/amadeus@elyspio/vite-eslint-config@emhamzahazeen/config-vite@kongjs/compile@linker-design/cli@linkysolucoes/eslint-config@mostlyserious/vitepack@marswap-exchange/widget@factoringplus/frontend-configs@moment-design/mo-vue-scripts@mediamanager.io/embed-libraries@jvbf2e/jvb-design-vue-scripts@jvbf2e/jvb-vue-scripts@qqt-product/directive@qomo-platform/vite-plugin@nuxtjs/eslint-module@padcom/vite-config-default@padcom/vite-default-config@sonli-design/sun-cli@spazious/vite-config@stackworx/vite-react-scriptsmsp-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-uploadifyindustry-ui-testdy-virtual-tableeipgrid-remote1eslint-plugin-lendifeg-vuebase@teller-protocol/kyberswap-widgets@uni-web-lab/vue3-spa-template@tmesoft/2d-teaching-center
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

3 years ago

1.5.2

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.0

3 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

4 years ago

1.0.5

4 years ago