@nabla/vite-plugin-eslint
Advanced tools
Comparing version 1.6.0 to 2.0.0
{ | ||
"name": "@nabla/vite-plugin-eslint", | ||
"description": "Plugs ESLint into Vite dev server", | ||
"version": "1.6.0", | ||
"version": "2.0.0", | ||
"license": "MIT", | ||
"author": "Arnaud Barré (https://github.com/ArnaudBarre)", | ||
"main": "src/index.js", | ||
"type": "module", | ||
"main": "index.cjs", | ||
"types": "index.d.ts", | ||
"module": "index.mjs", | ||
"exports": { | ||
".": { | ||
"types": "./index.d.ts", | ||
"require": "./index.cjs", | ||
"import": "./index.mjs" | ||
} | ||
}, | ||
"files": [ | ||
@@ -25,4 +35,4 @@ "src" | ||
"peerDependencies": { | ||
"vite": "^2 || ^3 || ^4 || ^5", | ||
"eslint": "*" | ||
"eslint": "*", | ||
"vite": "^4 || ^5" | ||
}, | ||
@@ -29,0 +39,0 @@ "devDependencies": { |
@@ -47,4 +47,5 @@ # @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: `string` | ||
- Type: `string | ((result: ESLint.LintResult) => void)` | ||
- Default: Custom format with one line per warning/error. | ||
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`. | ||
If provided, the value is passed to `eslint.loadFormatter`. Use `stylish` to get a CRA like output. Async formatters are supported in `1.5.0`. Function support was added in `1.7.0`. |
@@ -7,5 +7,5 @@ import { ESLint } from "eslint"; | ||
shouldLint?: (path: string) => boolean; | ||
formatter?: string; | ||
formatter?: string | ((result: ESLint.LintResult) => void); | ||
}) => Plugin; | ||
export default eslintPlugin; |
7202
7
110
51
Yes