All Projects → nabla → vite-plugin-eslint

nabla / vite-plugin-eslint

Licence: MIT license
Plugs ESLint into Vite dev server

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to vite-plugin-eslint

fullstack-template
This is a template repository to get up and running quickly with Vite, React, Jest, Express Docker, and Github Actions for CI/CD.
Stars: ✭ 14 (-74.55%)
Mutual labels:  eslint, vite
reactjs-vite-tailwindcss-boilerplate
ReactJS + Vite boilerplate to be used with Tailwindcss.
Stars: ✭ 103 (+87.27%)
Mutual labels:  eslint, vite
vite-plugin-checker
💬 Vite plugin that provide checks of TypeScript, ESLint, vue-tsc, and more.
Stars: ✭ 338 (+514.55%)
Mutual labels:  eslint, vite
OSAPI
👋 OSAPI 是依靠通用性后台管理平台搭建的API管理平台,基于 vue3、Nestjs 技术栈实现,包含 RBAC 角色权限模块、数据展示、编辑等模块。
Stars: ✭ 32 (-41.82%)
Mutual labels:  eslint, vite
vite-react-ts-tailwind-firebase-starter
Starter using Vite + React + TypeScript + Tailwind CSS. And already set up Firebase(v9), Prettier and ESLint.
Stars: ✭ 108 (+96.36%)
Mutual labels:  eslint, vite
admin-one-vue-tailwind
Free Vue.js 3.x Tailwind 3.x admin dashboard template with dark mode. Vite builds. Pinia state. Laravel integration available
Stars: ✭ 742 (+1249.09%)
Mutual labels:  vite
vite-vue3-tailwind
Boilerplate at vue 3 whit firebase, vue notus, typesctip, vite, tailwind
Stars: ✭ 21 (-61.82%)
Mutual labels:  vite
eslinter
Manual JavaScript Linting is a Bug
Stars: ✭ 47 (-14.55%)
Mutual labels:  eslint
geoxor.moe
This is my homepage website where people can download my music, covers and other assets!
Stars: ✭ 22 (-60%)
Mutual labels:  vite
svelte-eslint-parser
Svelte parser for ESLint
Stars: ✭ 30 (-45.45%)
Mutual labels:  eslint
nuxt-vite
Nuxt + Vite!! HMR so fast it'll make your head spin! Plus all the benefits of Nuxt
Stars: ✭ 54 (-1.82%)
Mutual labels:  vite
favv
Fullstack Web Application Framework With FastAPI + Vite + VueJS. Streamlit for rapid development.
Stars: ✭ 17 (-69.09%)
Mutual labels:  vite
frontend-tutorial
🎨 一个后端程序员的前端技术总结
Stars: ✭ 122 (+121.82%)
Mutual labels:  eslint
nuxt3-tailwind
nuxt3 boilerplate with tailwind and dynamic routes.
Stars: ✭ 52 (-5.45%)
Mutual labels:  vite
codeigniter-vue-boilerplate
CodeIgniter 3 + Vue.js 3 + Vite with supported Hot Module Replacement (HMR)
Stars: ✭ 38 (-30.91%)
Mutual labels:  vite
figma-plugin-typescript-boilerplate
Figma plugin TypeScript boilerplate to start developing right away
Stars: ✭ 43 (-21.82%)
Mutual labels:  eslint
vue3-element-admin
🎉 基于 vite2 + vue3 + element-plus 的后台管理系统vue3-element-admin;使用vue-cli可以切换webpack分支
Stars: ✭ 79 (+43.64%)
Mutual labels:  vite
vue-antdesign-admin-template
Ant Design Pro Vue Template
Stars: ✭ 127 (+130.91%)
Mutual labels:  eslint
vite-plugin-environment
Easily expose environment variables in Vite.js
Stars: ✭ 57 (+3.64%)
Mutual labels:  vite
mern-boilerplate
React + Express + Webpack + Mongo = MERN Stack Boilerplate
Stars: ✭ 39 (-29.09%)
Mutual labels:  eslint

@nabla/vite-plugin-eslint npm

Plugs ESLint into Vite dev server.

Differences with vite-plugin-eslint

  • Keeps HMR fast: linting is done asynchronously and doesn't block the transform process
  • Reduces noise: Display results via console logs

logs.png

Because of this, the plugin can't fail the build and is only applied in dev. Like typechecking, linting should be done before or in parallel of the build command.

Install

yarn add --dev @nabla/vite-plugin-eslint

Usage

import { defineConfig } from "vite";
import eslintPlugin from "@nabla/vite-plugin-eslint";

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

Options

eslintOptions

Note: the fix option is only supported from 1.3.4

shouldLint

  • Type: (path: string) => boolean
  • Default: (path) => path.match(/\/src\/[^?]*\.(vue|m?[jt]sx?)$/)

You can use DEBUG=eslint node_modules/.bin/vite to debug this option (available in 1.4.0)

formatter

  • Type: string

If provided, the value is passed to eslint.loadFormatter. Default to a custom format with one line per warning/error. Use stylish to get a CRA like output.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].