Socket
Socket
Sign inDemoInstall

@nabla/vite-plugin-eslint

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nabla/vite-plugin-eslint - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

11

index.js

@@ -1,2 +0,2 @@

const path = require("path");
const { resolve } = require("path");
const { Worker } = require("worker_threads");

@@ -12,5 +12,3 @@ const { normalizePath } = require("vite");

const worker = new Worker(path.resolve(__dirname, "./worker.js"), {
workerData: { options: { cache: true, ...eslintOptions }, formatter },
});
let worker; // Don't initialize worker for builds

@@ -22,2 +20,7 @@ return {

const path = normalizePath(id);
if (!worker) {
worker = new Worker(resolve(__dirname, "./worker.js"), {
workerData: { options: { cache: true, ...eslintOptions }, formatter },
});
}
if (shouldLint(path)) worker.postMessage(path);

@@ -24,0 +27,0 @@ return null;

{
"name": "@nabla/vite-plugin-eslint",
"version": "1.3.0",
"version": "1.3.1",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "Plugs ESLint into Vite dev server",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc