Run format after updating to prettier 2.0

This commit is contained in:
Pavel Djundik 2020-03-21 22:55:36 +02:00
commit 881b3eda19
138 changed files with 584 additions and 631 deletions

View file

@ -66,10 +66,7 @@ const changelogPath = path.resolve(__dirname, "..", "CHANGELOG.md");
if (token === undefined) {
try {
token = fs
.readFileSync(path.resolve(__dirname, "./github_token.txt"))
.toString()
.trim();
token = fs.readFileSync(path.resolve(__dirname, "./github_token.txt")).toString().trim();
} catch (e) {
log.error(`Environment variable ${colors.bold("CHANGELOG_TOKEN")} must be set.`);
log.error(`Alternative create ${colors.bold("scripts/github_token.txt")} file.`);

View file

@ -63,8 +63,5 @@ log.info(
);
function getPrettyDate() {
return new Date()
.toISOString()
.split(".")[0]
.replace("T", " ");
return new Date().toISOString().split(".")[0].replace("T", " ");
}

View file

@ -1,5 +1,5 @@
"use strict";
module.exports = function() {
return function() {};
module.exports = function () {
return function () {};
};