Fix prettifier configuration after bump; Fix issues found by new versions of prettifier & eslint;
parent
84cfa985a1
commit
264eba2e4a
|
|
@ -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
|
|
@ -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 });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue