From 2d55cd457f09d71ccbe6e09cc45620bff1fc6ece Mon Sep 17 00:00:00 2001 From: Renan Castro Date: Tue, 15 Oct 2024 10:38:51 -0300 Subject: [PATCH] fix: load all eagerly loaded files and folders --- CHANGELOG.md | 6 ++++++ lib/util/walker.js | 9 +++------ package.json | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e684ac2..3bfbe3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 1.5.1 and 1.5.2 - 2024-10-15 + +### Bug fixes + +- Fix issue where eager loaded files were not being linted when not using meteor main modules. + ## 1.5.0 - 2024-04-26 ### Bug fixes diff --git a/lib/util/walker.js b/lib/util/walker.js index bc9ae50..b9a6444 100644 --- a/lib/util/walker.js +++ b/lib/util/walker.js @@ -275,19 +275,16 @@ class Walker { return; } } - if(!fs.existsSync(path.join(this.appPath, 'server'))){ - debug('No server folder found in the app'); - return; - } - debug('Starting from meteor server folder'); + debug('Starting from eagerly loaded folders'); handleFolder( - path.join(this.appPath, 'server'), + path.join(this.appPath), this.appPath, archList, onFile, this.cachedParsedFile ); + fs.writeFileSync(this.filePath(), JSON.stringify(this.cachedParsedFile)); } diff --git a/package.json b/package.json index 18528da..7052ab5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@quave/eslint-plugin-meteor-quave", - "version": "1.5.1", + "version": "1.5.2", "description": "Quave linting rules for ESLint", "main": "lib/index.js", "scripts": {