Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@nabla/vite-plugin-eslint

Package Overview
Dependencies
Maintainers
4
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.5.0 to 1.6.0

10

package.json
{
"name": "@nabla/vite-plugin-eslint",
"description": "Plugs ESLint into Vite dev server",
"version": "1.5.0",
"version": "1.6.0",
"license": "MIT",

@@ -25,10 +25,10 @@ "author": "Arnaud Barré (https://github.com/ArnaudBarre)",

"peerDependencies": {
"vite": "^2 || ^3 || ^4",
"vite": "^2 || ^3 || ^4 || ^5",
"eslint": "*"
},
"devDependencies": {
"eslint": "^8.20.0",
"prettier": "^2.7.1",
"vite": "^3.0.2"
"eslint": "^8.53.0",
"prettier": "3.0.3",
"vite": "^5.0.0"
}
}

@@ -16,3 +16,3 @@ const { resolve } = require("path");

return {
name: "eslint",
name: "vite-plugin-eslint",
apply: "serve",

@@ -19,0 +19,0 @@ transform(_code, id) {

@@ -18,2 +18,3 @@ const { workerData, parentPort } = require("worker_threads");

const [report] = await eslint.lintFiles(path);
if (!report) return; // Can be empty with errorOnUnmatchedPattern: false
if (report.output !== undefined) await fs.writeFile(path, report.output);

@@ -31,4 +32,4 @@ if (report.messages.length === 0) return;

`${location}: ${chalk[m.severity === 2 ? "red" : "yellow"](
m.message
)}${rule}`
m.message,
)}${rule}`,
);

@@ -43,4 +44,4 @@ });

`${chalk.yellow(`[eslint] File not found`)} ${chalk.dim(
e.messageData.pattern
)}`
e.messageData.pattern,
)}`,
);

@@ -47,0 +48,0 @@ } else {

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