Skip to content

Commit 2d55cd4

Browse files
committed
fix: load all eagerly loaded files and folders
1 parent 1920938 commit 2d55cd4

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 1.5.1 and 1.5.2 - 2024-10-15
4+
5+
### Bug fixes
6+
7+
- Fix issue where eager loaded files were not being linted when not using meteor main modules.
8+
39
## 1.5.0 - 2024-04-26
410

511
### Bug fixes

lib/util/walker.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -275,19 +275,16 @@ class Walker {
275275
return;
276276
}
277277
}
278-
if(!fs.existsSync(path.join(this.appPath, 'server'))){
279-
debug('No server folder found in the app');
280-
return;
281-
}
282-
debug('Starting from meteor server folder');
278+
debug('Starting from eagerly loaded folders');
283279

284280
handleFolder(
285-
path.join(this.appPath, 'server'),
281+
path.join(this.appPath),
286282
this.appPath,
287283
archList,
288284
onFile,
289285
this.cachedParsedFile
290286
);
287+
291288
fs.writeFileSync(this.filePath(), JSON.stringify(this.cachedParsedFile));
292289
}
293290

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@quave/eslint-plugin-meteor-quave",
3-
"version": "1.5.1",
3+
"version": "1.5.2",
44
"description": "Quave linting rules for ESLint",
55
"main": "lib/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)