- Fix non-deterministic warning counts caused by two related bugs in the Walker:
- The module-level
handledFilesSet persisted across Walker instances, so when the file cache expired mid-run, re-walking produced an empty file list. MovedhandledFilesinto the Walker instance. shouldSkip()created a new Walker on every call and depended solely on the disk cache, which could expire mid-run. Added an in-memory cache (inMemoryCacheMap) that persists for the entire ESLint process, soshouldSkip()always sees the complete file list regardless of disk cache TTL.
- The module-level
- Fix issue where eager loaded files were not being linted when not using meteor main modules.
- Split devDependencies and dependencies to avoid npm audit warnings on dependencies used only in dev time.
- Fix error when babel config is not found by returning an empty array.
- Add guard to
auditArgumentCheckssincenodecould be empty.
- Add support to
TSandTSXfiles bypre-compilingit with thetypescriptcompiler. - You can ignore the cache from the
.eslint-meteor-fileby passingMETEOR_ESLINT_PLUGIN_IGNORE_CACHEas an environment variable.
- Detect new files after 5 seconds as now the cache is expiring. You can customize this time by providing
METEOR_ESLINT_PLUGIN_EXPIRES_CACHE_IN_SECONDSenv var.
- Adds more debug statements to be logged when using
METEOR_ESLINT_PLUGIN_DEBUGenv var. - Adds an option to expires the cache after an amount of seconds, by default its 5. Env var
METEOR_ESLINT_PLUGIN_EXPIRES_CACHE_IN_SECONDS
This version was not released but the fix is included into 1.4.2
- Issue linting collection hooks #6