vite-plugin-eslinter
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

Vite Plugin Eslinter

step 1.

npm install -D eslint vite-plugin-eslinter

step 2.

// vite.config.js
...
import { ESLint } from 'eslint'
import { pluginEslinter } from 'vite-plugin-eslinter'
import path from 'path'

const projDir = path.resolve(__dirname)
const eslint = new ESLint()

export default defineConfig({
  ...,
  plugins: [
    ...,
    pluginEslinter(eslint, {
      lintFiles: [path.resolve(projDir, 'src/**/*.{ts,tsx}')],
    })
  ]
})

Package Sidebar

Install

npm i vite-plugin-eslinter

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

228 kB

Total Files

77

Last publish

Collaborators

  • wailinaung