diff --git a/extensions/JeremyGamer13/tween.js b/extensions/JeremyGamer13/tween.js index 41df879589..850dc6bb12 100644 --- a/extensions/JeremyGamer13/tween.js +++ b/extensions/JeremyGamer13/tween.js @@ -119,10 +119,10 @@ return x === 0 ? 0 : x === 1 - ? 1 - : x < 0.5 - ? Math.pow(2, 20 * x - 10) / 2 - : (2 - Math.pow(2, -20 * x + 10)) / 2; + ? 1 + : x < 0.5 + ? Math.pow(2, 20 * x - 10) / 2 + : (2 - Math.pow(2, -20 * x + 10)) / 2; } default: return 0; @@ -178,27 +178,29 @@ return x === 0 ? 0 : x === 1 - ? 1 - : -Math.pow(2, 10 * x - 10) * Math.sin((x * 10 - 10.75) * c4); + ? 1 + : -Math.pow(2, 10 * x - 10) * Math.sin((x * 10 - 10.75) * c4); } case "out": { const c4 = (2 * Math.PI) / 3; return x === 0 ? 0 : x === 1 - ? 1 - : Math.pow(2, -10 * x) * Math.sin((x * 10 - 0.75) * c4) + 1; + ? 1 + : Math.pow(2, -10 * x) * Math.sin((x * 10 - 0.75) * c4) + 1; } case "in out": { const c5 = (2 * Math.PI) / 4.5; return x === 0 ? 0 : x === 1 - ? 1 - : x < 0.5 - ? -(Math.pow(2, 20 * x - 10) * Math.sin((20 * x - 11.125) * c5)) / 2 - : (Math.pow(2, -20 * x + 10) * Math.sin((20 * x - 11.125) * c5)) / 2 + - 1; + ? 1 + : x < 0.5 + ? -(Math.pow(2, 20 * x - 10) * Math.sin((20 * x - 11.125) * c5)) / + 2 + : (Math.pow(2, -20 * x + 10) * Math.sin((20 * x - 11.125) * c5)) / + 2 + + 1; } default: return 0; diff --git a/extensions/NOname-awa/cn-number.js b/extensions/NOname-awa/cn-number.js index a3db7e1208..10e72cbb02 100644 --- a/extensions/NOname-awa/cn-number.js +++ b/extensions/NOname-awa/cn-number.js @@ -90,15 +90,15 @@ String(Number2).slice(-j).charAt(0) == "2" && j >= 3 ? "两" : k == "0" - ? j == 1 - ? "" - : i.slice(-1) == "零" - ? "" - : String(Number2).slice(-1) == "0" && - (j != 3 || String(Number2).charAt(2) == "0") - ? " " - : "零" - : C_Number[k - 1] + ? j == 1 + ? "" + : i.slice(-1) == "零" + ? "" + : String(Number2).slice(-1) == "0" && + (j != 3 || String(Number2).charAt(2) == "0") + ? " " + : "零" + : C_Number[k - 1] ); i = String(i) + @@ -106,8 +106,8 @@ i.slice(-1) == "零" || i.slice(-1) == " " ? "" : unit[j - 1] == "个" - ? "" - : unit[j - 1] + ? "" + : unit[j - 1] ); } else { if (j != 1) { diff --git a/extensions/TheShovel/LZ-String.js b/extensions/TheShovel/LZ-String.js index 635ed972ef..26c6612b3e 100644 --- a/extensions/TheShovel/LZ-String.js +++ b/extensions/TheShovel/LZ-String.js @@ -63,10 +63,10 @@ return null == r ? "" : "" == r - ? null - : i._decompress(r.length, 32, function (n) { - return t(o, r.charAt(n)); - }); + ? null + : i._decompress(r.length, 32, function (n) { + return t(o, r.charAt(n)); + }); }, compressToUTF16: function (o) { return null == o @@ -79,10 +79,10 @@ return null == r ? "" : "" == r - ? null - : i._decompress(r.length, 16384, function (o) { - return r.charCodeAt(o) - 32; - }); + ? null + : i._decompress(r.length, 16384, function (o) { + return r.charCodeAt(o) - 32; + }); }, compressToUint8Array: function (r) { for ( @@ -121,11 +121,11 @@ return null == r ? "" : "" == r - ? null - : ((r = r.replace(/ /g, "+")), - i._decompress(r.length, 32, function (o) { - return t(n, r.charAt(o)); - })); + ? null + : ((r = r.replace(/ /g, "+")), + i._decompress(r.length, 32, function (o) { + return t(n, r.charAt(o)); + })); }, compress: function (o) { return i._compress(o, 16, function (o) { @@ -231,10 +231,10 @@ return null == r ? "" : "" == r - ? null - : i._decompress(r.length, 32768, function (o) { - return r.charCodeAt(o); - }); + ? null + : i._decompress(r.length, 32768, function (o) { + return r.charCodeAt(o); + }); }, _decompress: function (o, n, e) { var t, @@ -336,12 +336,12 @@ // @ts-ignore }) : "undefined" != typeof module && null != module - ? (module.exports = LZString) - : "undefined" != typeof angular && - null != angular && - angular.module("LZString", []).factory("LZString", function () { - return LZString; - }); + ? (module.exports = LZString) + : "undefined" != typeof angular && + null != angular && + angular.module("LZString", []).factory("LZString", function () { + return LZString; + }); /* eslint-enable */ class lzcompress { diff --git a/extensions/box2d.js b/extensions/box2d.js index 6f0e498058..b6dbe689fd 100644 --- a/extensions/box2d.js +++ b/extensions/box2d.js @@ -2124,13 +2124,13 @@ dX > 0 ? (aabb.upperBound.x - this.p1.x) / dX : dX < 0 - ? (aabb.lowerBound.x - this.p1.x) / dX - : Number.POSITIVE_INFINITY, + ? (aabb.lowerBound.x - this.p1.x) / dX + : Number.POSITIVE_INFINITY, dY > 0 ? (aabb.upperBound.y - this.p1.y) / dY : dY < 0 - ? (aabb.lowerBound.y - this.p1.y) / dY - : Number.POSITIVE_INFINITY + ? (aabb.lowerBound.y - this.p1.y) / dY + : Number.POSITIVE_INFINITY ); this.p2.x = this.p1.x + dX * lambda; this.p2.y = this.p1.y + dY * lambda; @@ -2142,13 +2142,13 @@ dX > 0 ? (aabb.upperBound.x - this.p2.x) / dX : dX < 0 - ? (aabb.lowerBound.x - this.p2.x) / dX - : Number.POSITIVE_INFINITY, + ? (aabb.lowerBound.x - this.p2.x) / dX + : Number.POSITIVE_INFINITY, dY > 0 ? (aabb.upperBound.y - this.p2.y) / dY : dY < 0 - ? (aabb.lowerBound.y - this.p2.y) / dY - : Number.POSITIVE_INFINITY + ? (aabb.lowerBound.y - this.p2.y) / dY + : Number.POSITIVE_INFINITY ); this.p1.x = this.p2.x + dX * lambda; this.p1.y = this.p2.y + dY * lambda; diff --git a/extensions/obviousAlexC/SensingPlus.js b/extensions/obviousAlexC/SensingPlus.js index 0cf92b63eb..d84eea22c5 100644 --- a/extensions/obviousAlexC/SensingPlus.js +++ b/extensions/obviousAlexC/SensingPlus.js @@ -15,8 +15,8 @@ typeof webkitSpeechRecognition !== "undefined" ? window.webkitSpeechRecognition : typeof window.SpeechRecognition !== "undefined" - ? window.SpeechRecognition - : null; + ? window.SpeechRecognition + : null; let recognizedSpeech = ""; let recording = false; diff --git a/extensions/obviousAlexC/newgroundsIO.js b/extensions/obviousAlexC/newgroundsIO.js index 8696825fb0..f06999da35 100644 --- a/extensions/obviousAlexC/newgroundsIO.js +++ b/extensions/obviousAlexC/newgroundsIO.js @@ -843,8 +843,8 @@ typeof options["social"] === "undefined" ? false : options["social"] - ? true - : false, + ? true + : false, skip: typeof options["skip"] !== "number" ? 0 : options["skip"], limit: typeof options["limit"] !== "number" ? 10 : options["limit"], }; diff --git a/extensions/true-fantom/network.js b/extensions/true-fantom/network.js index a5303fa7d5..4c80e0a0a2 100644 --- a/extensions/true-fantom/network.js +++ b/extensions/true-fantom/network.js @@ -552,8 +552,8 @@ Number(WIDTH) < 100 ? 100 : Number(WIDTH) > window.screen.width - ? window.screen.width - : Number(WIDTH) + ? window.screen.width + : Number(WIDTH) }`; params += isNaN(HEIGHT) ? "" @@ -561,8 +561,8 @@ Number(HEIGHT) < 100 ? 100 : Number(HEIGHT) > window.screen.height - ? window.screen.height - : Number(HEIGHT) + ? window.screen.height + : Number(HEIGHT) }`; params += isNaN(LEFT) ? "" @@ -570,8 +570,8 @@ Number(LEFT) < 0 ? 0 : Number(LEFT) > window.screen.width - ? window.screen.width - : Number(LEFT) + ? window.screen.width + : Number(LEFT) }`; params += isNaN(TOP) ? "" @@ -579,8 +579,8 @@ Number(TOP) < 0 ? 0 : Number(TOP) > window.screen.height - ? window.screen.height - : Number(TOP) + ? window.screen.height + : Number(TOP) }`; Scratch.openWindow(String(USER_URL), params); } diff --git a/extensions/true-fantom/regexp.js b/extensions/true-fantom/regexp.js index 45e5c4ff87..6d7df47cb2 100644 --- a/extensions/true-fantom/regexp.js +++ b/extensions/true-fantom/regexp.js @@ -49,14 +49,14 @@ return isObject(val) ? val : isArray(val) - ? val.reduce( - (array, currentValue, currentIndex) => ({ - ...array, - [currentIndex + 1]: currentValue, - }), - {} - ) - : { 1: val }; + ? val.reduce( + (array, currentValue, currentIndex) => ({ + ...array, + [currentIndex + 1]: currentValue, + }), + {} + ) + : { 1: val }; }; const dataValues = (val) => { @@ -551,8 +551,8 @@ redat.global ? data : Object.keys(data)[0] - ? { [Object.keys(data)[0]]: Object.values(data)[0] } - : {} + ? { [Object.keys(data)[0]]: Object.values(data)[0] } + : {} ); case "map": data = Array.from(str.matchAll(gredat)).map((val) => [ diff --git a/extensions/turboloader/audiostream.js b/extensions/turboloader/audiostream.js index 5fe176e307..c75f051eea 100644 --- a/extensions/turboloader/audiostream.js +++ b/extensions/turboloader/audiostream.js @@ -540,8 +540,8 @@ ? 0.1 : Math.abs(VAL) / 700 : VAL > 700 - ? 15 - : VAL / 50 + 1; + ? 15 + : VAL / 50 + 1; } am_setvolume({ VAL }, util) { diff --git a/package-lock.json b/package-lock.json index d4c779ba4d..a48398b8bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1176,9 +1176,9 @@ "dev": true }, "prettier": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.0.3.tgz", - "integrity": "sha512-L/4pUDMxcNa8R/EthV08Zt42WBO4h1rarVtK0K+QJG0X187OLo7l699jWw0GKuwzkPQ//jMFA/8Xm6Fh3J/DAg==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.0.tgz", + "integrity": "sha512-TQLvXjq5IAibjh8EpBIkNKxO749UEWABoiIZehEPiY4GNpVdhaFKqSTu+QrlU6D2dPAfubRmtJTi4K4YkQ5eXw==", "dev": true }, "proxy-addr": { diff --git a/package.json b/package.json index 365e4787ab..d62d006187 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "eslint": "^8.53.0", "espree": "^9.6.1", "esquery": "^1.5.0", - "prettier": "^3.0.3" + "prettier": "^3.1.0" }, "private": true }