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
3
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.4.2 to 1.5.0

2

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

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

@@ -41,3 +41,3 @@ # @nabla/vite-plugin-eslint [![npm](https://img.shields.io/npm/v/@nabla/vite-plugin-eslint)](https://www.npmjs.com/package/@nabla/vite-plugin-eslint)

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

@@ -50,2 +50,2 @@ You can use `DEBUG=eslint node_modules/.bin/vite` to debug this option (available in `1.4.0`)

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.
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. Async formatters are supported in `1.5.0`.

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

eslintOptions = {},
shouldLint = (path) => path.match(/\/src\/[^?]*\.(vue|m?[jt]sx?)$/),
shouldLint = (path) => path.match(/\/src\/[^?]*\.(vue|svelte|m?[jt]sx?)$/),
formatter,

@@ -12,0 +12,0 @@ } = options;

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

const formatter = await formatterPromise;
console.log(formatter.format([report]));
console.log(await formatter.format([report]));
} else {

@@ -25,0 +25,0 @@ report.messages.forEach((m) => {

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