🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

vite-plugin-lint

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

vite-plugin-lint

ESLint and StyleLint plugin for vite.

1.0.1
unpublished
latest
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created

vite-plugin-eslint

ESLint and StyleLint plugin for vite.

Forked from vite-plugin-eslint and @amatlash/vite-plugin-stylelint

Install

npm install vite-plugin-lint --save-dev
# or
yarn add vite-plugin-lint --dev

Usage

import { defineConfig } from 'vite'
import { eslintPlugin, stylelintPlugin } from 'vite-plugin-lint'

export default defineConfig({
  plugins: [eslintPlugin(), stylelintPlugin()]
})

EslintPlugin Options

cache

  • Type: boolean
  • Default: false

Decrease execution time.

fix

  • Type: boolean
  • Default: false

Auto fix source code.

include

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

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

exclude

  • Type: string | string[] | RegExp
  • Default: 'node_modules'

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

formatter

  • Type: string | ESLint.Formatter
  • Default: stylish

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

throwOnWarning

  • Type: boolean
  • Default: true

The warings found will be emitted, default to true.

throwOnError

  • Type: boolean
  • Default: true

The errors found will be emitted, default to true.

StylelintPlugin Options

include

  • Type: string | string[] | RegExp
  • Default: /.*\.(vue|scss|sass|css|postcss)/

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

exclude

  • Type: string | string[] | RegExp
  • Default: 'node_modules'

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

==@import 'xxxx.scss' is not support in vite2==

License

MIT

FAQs

Package last updated on 09 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts