Skip to content

Commit

Permalink
Merge pull request #14 from quavedev/fix/eagerly-loaded
Browse files Browse the repository at this point in the history
fix: load all eagerly loaded files and folders
  • Loading branch information
renanccastro authored Oct 15, 2024
2 parents 1920938 + 2d55cd4 commit 6c83171
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
9 changes: 3 additions & 6 deletions lib/util/walker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit 6c83171

Please sign in to comment.