Skip to content

Commit 689337a

Browse files
committed
fix some eslint warnings
1 parent bd16153 commit 689337a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

core/lib/pattern_assembler.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ var pattern_assembler = function () {
234234
// the template and replace their calls in this template with rendered
235235
// results
236236
if (currentPattern.engine.expandPartials && (foundPatternPartials !== null && foundPatternPartials.length > 0)) {
237+
// eslint-disable-next-line
237238
expandPartials(foundPatternPartials, list_item_hunter, patternlab, currentPattern);
238239

239240
// update the extendedTemplate in the partials object in case this

core/lib/patternlab.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,13 @@ var patternlab_engine = function (config) {
253253
console.log(err);
254254
}
255255
allData = plutils.mergeData(allData, pattern.jsonFileData);
256+
256257
//var headHTML = pattern_assembler.renderPattern(patternlab.userHead, allData);
257258
var headHTML = pattern_assembler.renderPattern(pattern.header, allData);
258259

259260
//render the extendedTemplate with all data
260261
pattern.patternPartialCode = pattern_assembler.renderPattern(pattern, allData);
262+
261263
//todo see if this is still needed
262264
pattern.patternPartialCodeE = entity_encoder.encode(pattern.patternPartialCode);
263265

core/lib/starterkit_manager.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
var starterkit_manager = function (pl) {
44
var path = require('path'),
55
fs = require('fs-extra'),
6-
JSON5 = require('json5'),
7-
_ = require('lodash'),
86
paths = pl.config.paths;
97

108
function loadStarterKit(starterkitName) {
@@ -17,7 +15,7 @@ var starterkit_manager = function (pl) {
1715

1816
//todo check and prompt user is paths().source is not empty
1917

20-
fs.copy(kitPath, paths.source.root, function(ex) {
18+
fs.copy(kitPath, paths.source.root, function (ex) {
2119
if (ex) {
2220
console.error(ex);
2321
}

0 commit comments

Comments
 (0)