Skip to content

Commit 2deb28b

Browse files
committed
Make eslint happy
1 parent c9a8b9a commit 2deb28b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Diff for: index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function generateLoader() {
2929
this.cacheable();
3030
const callback = this.async();
3131
discover(options)
32-
.then(modules => serialize(modules, options))
32+
.then((modules) => serialize(modules, options))
3333
.then((loader) => {
3434
callback(null, loader);
3535
})

Diff for: lib/discover.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function findGraphDependencies(manifestModules, options) {
1919
reject(err);
2020
return;
2121
}
22-
const nofloMain = manifestModules.filter(m => m.name === '');
22+
const nofloMain = manifestModules.filter((m) => m.name === '');
2323
resolve(filtered.concat(nofloMain));
2424
});
2525
});
@@ -41,7 +41,7 @@ function filterDependencies(manifestModules, options) {
4141

4242
function discoverModules(options) {
4343
return loadManifest(options)
44-
.then(manifest => filterDependencies(manifest.modules, options));
44+
.then((manifest) => filterDependencies(manifest.modules, options));
4545
}
4646

4747
module.exports = discoverModules;

Diff for: lib/serialize.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function modulesToData(modules, options) {
4040
}
4141

4242
const sourcePromises = data.components
43-
.filter(component => component.elementary)
43+
.filter((component) => component.elementary)
4444
.map((component) => {
4545
const p = new Promise((resolve, reject) => {
4646
fs.readFile(component.path, 'utf-8', (err, source) => {

0 commit comments

Comments
 (0)