Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@nabla/vite-plugin-eslint
Advanced tools
Plugs ESLint into Vite dev server.
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.
yarn add --dev @nabla/vite-plugin-eslint
import { defineConfig } from "vite";
import eslintPlugin from "@nabla/vite-plugin-eslint";
export default defineConfig({
plugins: [eslintPlugin()],
});
{ cache: true }
Note: the fix
option is only supported from 1.3.4
(path: string) => boolean
(path) => path.match(/\/src\/.*\.[jt]sx?$/)
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.
1.3.4
Enable fix option (#3)
FAQs
Plugs ESLint into Vite dev server
The npm package @nabla/vite-plugin-eslint receives a total of 17,104 weekly downloads. As such, @nabla/vite-plugin-eslint popularity was classified as popular.
We found that @nabla/vite-plugin-eslint demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
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.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.