@nabla/vite-plugin-eslint
Advanced tools
Comparing version 1.4.2 to 1.5.0
{ | ||
"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) => { |
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
6022