Fix prettifier configuration after bump; Fix issues found by new versions of prettifier & eslint;

pull/88/head
Vladimir Kryukov 2021-01-08 17:07:15 +02:00
parent 84cfa985a1
commit 264eba2e4a
5 changed files with 7 additions and 6 deletions

View File

@ -2,5 +2,6 @@
"semi": true, "semi": true,
"singleQuote": true, "singleQuote": true,
"trailingComma": "all", "trailingComma": "all",
"printWidth": 100 "printWidth": 100,
"arrowParens": "avoid"
} }

File diff suppressed because one or more lines are too long

View File

@ -12,7 +12,7 @@ class Docker {
--build-arg IMAGE=${baseImage} \ --build-arg IMAGE=${baseImage} \
--tag ${tag}`; --tag ${tag}`;
await exec(command, null, { silent }); await exec(command, undefined, { silent });
return tag; return tag;
} }
@ -64,7 +64,7 @@ class Docker {
${useHostNetwork ? '--net=host' : ''} \ ${useHostNetwork ? '--net=host' : ''} \
${image}`; ${image}`;
await exec(command, null, { silent }); await exec(command, undefined, { silent });
} }
} }

View File

@ -23,7 +23,7 @@ describe('ImageTag', () => {
expect(() => new ImageTag({ version })).not.toThrow(); expect(() => new ImageTag({ version })).not.toThrow();
}); });
test.each(['some version', '', 1, null])('throws for incorrect versions %p', version => { test.each(['some version', '', 1, undefined])('throws for incorrect versions %p', version => {
expect(() => new ImageTag({ version })).toThrow(); expect(() => new ImageTag({ version })).toThrow();
}); });
}); });

View File

@ -8,7 +8,7 @@ class Input {
} }
static isValidFolderName(folderName) { static isValidFolderName(folderName) {
const validFolderName = new RegExp(/^(\.|\.\/)?(\.?\w+([-_]?\w+)*\/?)*$/); const validFolderName = new RegExp(/^(\.|\.\/)?(\.?\w+([_-]?\w+)*\/?)*$/);
return validFolderName.test(folderName); return validFolderName.test(folderName);
} }