@nabla/vite-plugin-eslint
Advanced tools
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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
66084
62
0