Skip to content

Commit

Permalink
Format code with Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
pioug committed Apr 24, 2021
1 parent 1fa07cb commit db4255a
Show file tree
Hide file tree
Showing 10 changed files with 446 additions and 405 deletions.
2 changes: 1 addition & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ module.exports = {
printWidth: 80,
singleQuote: true,
trailingComma: 'es5',
proseWrap: true,
proseWrap: 'preserve',
};
6 changes: 3 additions & 3 deletions bin/svgicons2svgfont.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ if (!program.args.length) {
process.exit(1);
}

const files = program.args.flatMap(file => glob.sync(file));
const files = program.args.flatMap((file) => glob.sync(file));

new SVGIconsDirStream(files, {
startUnicode: program.startunicode,
prependUnicode: program.prependUnicode,
log: program.v ? console.log : function() {}, // eslint-disable-line
log: program.v ? console.log : function () {}, // eslint-disable-line
})
.pipe(
new SVGIcons2SVGFontStream({
Expand All @@ -89,7 +89,7 @@ new SVGIconsDirStream(files, {
descent: program.descent,
ascent: program.ascent,
metadata: program.metadata,
log: program.v ? console.log : function() {}, // eslint-disable-line
log: program.v ? console.log : function () {}, // eslint-disable-line
})
)
.pipe(program.output ? fs.createWriteStream(program.output) : process.stdout);
Loading

0 comments on commit db4255a

Please sign in to comment.