Skip to content

Commit 00d7bbe

Browse files
committed
fix: add eslint fixes
1 parent 239a5a6 commit 00d7bbe

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

packages/core/src/lib/buildPatterns.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,10 @@ module.exports = (deletePatternDir, patternlab, additionalData) => {
141141
}
142142
//render all patterns last, so lineageR works
143143
const allPatternsPromise = patternsToBuild.map(pattern =>
144-
compose(pattern, patternlab)
144+
compose(
145+
pattern,
146+
patternlab
147+
)
145148
);
146149
//copy non-pattern files like JavaScript
147150
const allJS = patternsToBuild.map(pattern => {

packages/core/src/lib/object_factory.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ const Pattern = function(relPath, data, patternlab) {
7676
// (rendered!) html file for this pattern, to be shown in the iframe
7777
this.patternLink = this.patternSectionSubtype
7878
? `$${this.name}/index.html`
79-
: patternlab ? this.getPatternLink(patternlab, 'rendered') : null;
79+
: patternlab
80+
? this.getPatternLink(patternlab, 'rendered')
81+
: null;
8082

8183
// The canonical "key" by which this pattern is known. This is the callable
8284
// name of the pattern. UPDATE: this.key is now known as this.patternPartial

0 commit comments

Comments
 (0)