vite-plugin-eslint4b

v0.2.1
Vite plugin for running ESLint on browser
eslint vite browser

vite-plugin-eslint4b

Vite plugin for running ESLint on browser

Note
It is not a plugin for running ESLint during the build process.

With this plugin the following imports will work on the browser:

import { Linter } from 'eslint';

Usage

Installation

npm install --save-dev vite-plugin-eslint4b eslint

Configuration

// vite.config.ts
import type { UserConfig } from "vite";
import eslint4b from "vite-plugin-eslint4b";

const config: UserConfig = {
  plugins: [
    eslint4b(), // <-
  ],
};
export default config;

Metadata

  • MIT
  • Whatever
  • Yosuke Ota
  • released 9/23/2023

Downloads

Maintainers