All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
5.0.3 (2024-11-26)
Note: Version bump only for package vite-plugin-eslint2
5.0.2 (2024-11-08)
- correct id & filePath params (1ac2b85) - by @
5.0.1 (2024-10-19)
Note: Version bump only for package vite-plugin-eslint2
5.0.0 (2024-10-01)
- remove chokidar option
- remove chokidar option (e33e7f0) - by @ModyQyW
- fix wrong colorize (cc20565) - by @ModyQyW
- remove extra parsing (495b39f) - by @ModyQyW
- terminate worker if possible (3304fb4) - by @ModyQyW
4.4.2 (2024-09-25)
- eslintInstance may not be initialized when calling lintFiles in the worker (#40) (afc7bee) - by @fuxichen
- fix types (654c4bc) - by @
4.4.1 (2024-09-11)
- fix: make
@types/eslint
optional
- feat: support
eslint@9
- feat: try
loadESLint
first, fallback to read explicit classes
- chore: update
peerDependencies
- feat: support
rollup@4
andvite@5
, ATTENTION:rollup@4
is supported sincevite@5.0.0-beta.10
- feat: try to support flat config system
- feat: add
test
option
- revert: revert "fix: transform errors ↔ warnings for real emitErrorAsWarning and emitWarningAsError"
- fix: transform errors ↔ warnings for real emitErrorAsWarning and emitWarningAsError
- fix: fix internal function
shouldIgnoreModule
judgement
I completely rewrote the plugin. It's still backward compatible, but there is still a possibility that the changes may affect some projects. So I bumped a major version.
- feat: add
lintDirtyOnly
option - feat: add
debug
- types: add descriptions
- docs: update README
- feat!: update internal functions
- build: switch to
unbuild
- feat: export more types
- fix: fix eslint initial params
This project is named vite-plugin-eslint2
now.
- feat: add
chokidar
option - fix: use
__dirname
directly by accident - fix: maybe lint files should be ignored
- build: update minify and generate sourcemap
- perf: better emit handling
- build: switch to rollup
- refactor:
shouldIgnore
function
- fix: fix judge order
- fix: fix judge order
- perf: avoid empty log
- perf: avoid logging twice for one file
- feat: add
lintInWorker
option - perf: initialESLint params
- fix: fix build
- feat: support
vite@4
- feat!: require
node>=14.18
- feat!:
build
option defaults tofalse
- feat!:
cacheLocation
option defaults to.eslintcache
- feat: esm by default
- don't be afraid as commonjs is also supported
- fix: fix ESLint options lost
- feat: add
dev
andbuild
option
- perf: improve types
- refactor
- revert: revert
perf: reduce dependencies
, which breaks vite@2
- perf: reduce dependencies
- fix: fix build
- perf: use
config.cacheDir
to get defaultcacheLocation
- fix: pass
ctx
to lintFiles method
- fix: warning styles
- fix: fix typo
- perf: warn when
lintOnStart
is true
- perf: import path from
node:path
instead ofpath
- fix: fix
type: "module"
support
Just update peerDependencies
in package.json
.
- fix: omit keys to avoid
new ESLint
error
- fix: fix type
This version supports vite@2 and vite@3. The breaking changes are caused by aligning behaviors with ESLint
Node.js API.
- feat!: remove
throwOnError
andthrowOnWarning
options (marked asdeprecated
before) - feat!:
include
andexclude
options now acceptstring | string[]
only to align witheslint.lintFiles
- feat: add
lintOnStart
option - feat: exclude
virtual:
by default
- fix: show error message when importing
eslint
if possible - fix: include
shims
intodist
- feat: support
vite@3
- feat: ignore virtual modules
- perf: not to add
build.outDir
intoexclude
- fix: fix
then
handling
- fix: remove
allowSyntheticDefaultImports
andesModuleInterop
intsconfig.json
- fix: fix regressions
- feat: include
.svelte
files by default
- perf: better output format
- feat: add
emitErrorAsWarning
andemitWarningAsError
options
- fix: fix
index.html
dealing
- feat: support ESLint options
- feat: recommend
throwOnError
->emitError
andthrowOnWarning
->emitWarning
The plugin recommends emitError
/ emitWarning
instead of throwOnError
/ throwOnWarning
now. However, you can stay with throwOnError
/ throwOnWarning
safely. This is a backward-compatible version update.
- feat: add
eslintPath
option
Initial release.