chore: upgrade and pin prettier dependencies (#7232)

We're seeing odd failures with Prettier on some CI branches; my hunch is that they are installing different versions of the package and therefore getting formatting conflicts. This PR updates them all and pins them to specific versions - something we should probably consider generally, or remove our `package-lock.json` from the gitignore.
This commit is contained in:
Jack Franklin
2021-05-12 15:48:30 +01:00
committed by GitHub
parent d9ace6c664
commit 523aa0aafa
23 changed files with 74 additions and 101 deletions

View File

@@ -222,11 +222,9 @@ function loadFromJSONV1(json) {
const result = {};
result.type = /** @type {string} */ (parseValue(json, 'type', 'string'));
result.userAgent = /** @type {string} */ (parseValue(
json,
'user-agent',
'string'
));
result.userAgent = /** @type {string} */ (
parseValue(json, 'user-agent', 'string')
);
const capabilities = parseValue(json, 'capabilities', 'object', []);
if (!Array.isArray(capabilities))
@@ -238,11 +236,9 @@ function loadFromJSONV1(json) {
result.capabilities.push(capabilities[i]);
}
result.deviceScaleFactor = /** @type {number} */ (parseValue(
json['screen'],
'device-pixel-ratio',
'number'
));
result.deviceScaleFactor = /** @type {number} */ (
parseValue(json['screen'], 'device-pixel-ratio', 'number')
);
if (result.deviceScaleFactor < 0 || result.deviceScaleFactor > 100)
throw new Error(
'Emulated device has wrong deviceScaleFactor: ' + result.deviceScaleFactor