lint: Re-run eslint --fix

This commit is contained in:
Richard Hansen 2020-12-16 16:51:43 -05:00 committed by John McLear
parent fc234d0088
commit f54dcbc766
13 changed files with 44 additions and 44 deletions

View file

@ -25,10 +25,10 @@ exports.setPadHTML = async (pad, html) => {
const apiLogger = log4js.getLogger('ImportHtml');
rehype()
.use(minifyWhitespace, {newlines: false})
.process(html, (err, output) => {
html = String(output);
});
.use(minifyWhitespace, {newlines: false})
.process(html, (err, output) => {
html = String(output);
});
const $ = cheerio.load(html);

View file

@ -64,9 +64,9 @@ function prefixLocalLibraryPath(path) {
for (const key in tar) {
exports.tar[prefixLocalLibraryPath(key)] =
tar[key].map(prefixLocalLibraryPath).concat(
tar[key].map(prefixLocalLibraryPath).map((p) => p.replace(/\.js$/, '')),
tar[key].map(prefixLocalLibraryPath).map((p) => p.replace(/\.js$/, ''))
).concat(
tar[key].map(prefixLocalLibraryPath).map((p) => `${p.replace(/\.js$/, '')}/index.js`),
tar[key].map(prefixLocalLibraryPath).map((p) => `${p.replace(/\.js$/, '')}/index.js`)
);
}

View file

@ -108,8 +108,8 @@ _.extend(Button.prototype, {
};
return tag('li', liAttributes,
tag('a', {'class': this.grouping, 'data-l10n-id': this.attributes.localizationId},
tag('button', {'class': ` ${this.attributes.class}`, 'data-l10n-id': this.attributes.localizationId}),
),
tag('button', {'class': ` ${this.attributes.class}`, 'data-l10n-id': this.attributes.localizationId})
)
);
},
});
@ -150,7 +150,7 @@ _.extend(SelectButton.prototype, Button.prototype, {
'data-type': 'select',
};
return tag('li', attributes,
this.select({id: this.attributes.selectId}),
this.select({id: this.attributes.selectId})
);
},
});