Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump prettier from 3.0.3 to 3.1.0 #16939

Merged
merged 4 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
90 changes: 45 additions & 45 deletions files/es/glossary/base64/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,14 +127,14 @@ function b64ToUint6(nChr) {
return nChr > 64 && nChr < 91
? nChr - 65
: nChr > 96 && nChr < 123
? nChr - 71
: nChr > 47 && nChr < 58
? nChr + 4
: nChr === 43
? 62
: nChr === 47
? 63
: 0;
? nChr - 71
: nChr > 47 && nChr < 58
? nChr + 4
: nChr === 43
? 62
: nChr === 47
? 63
: 0;
yin1999 marked this conversation as resolved.
Show resolved Hide resolved
}

function base64DecToArr(sBase64, nBlocksSize) {
Expand Down Expand Up @@ -169,14 +169,14 @@ function uint6ToB64(nUint6) {
return nUint6 < 26
? nUint6 + 65
: nUint6 < 52
? nUint6 + 71
: nUint6 < 62
? nUint6 - 4
: nUint6 === 62
? 43
: nUint6 === 63
? 47
: 65;
? nUint6 + 71
: nUint6 < 62
? nUint6 - 4
: nUint6 === 62
? 43
: nUint6 === 63
? 47
: 65;
yin1999 marked this conversation as resolved.
Show resolved Hide resolved
}

function base64EncArr(aBytes) {
Expand Down Expand Up @@ -224,27 +224,27 @@ function UTF8ArrToStr(aBytes) {
aBytes[++nIdx] -
128
: nPart > 247 && nPart < 252 && nIdx + 4 < nLen /* five bytes */
? ((nPart - 248) << 24) +
((aBytes[++nIdx] - 128) << 18) +
((aBytes[++nIdx] - 128) << 12) +
((aBytes[++nIdx] - 128) << 6) +
aBytes[++nIdx] -
128
: nPart > 239 && nPart < 248 && nIdx + 3 < nLen /* four bytes */
? ((nPart - 240) << 18) +
((aBytes[++nIdx] - 128) << 12) +
((aBytes[++nIdx] - 128) << 6) +
aBytes[++nIdx] -
128
: nPart > 223 && nPart < 240 && nIdx + 2 < nLen /* three bytes */
? ((nPart - 224) << 12) +
((aBytes[++nIdx] - 128) << 6) +
aBytes[++nIdx] -
128
: nPart > 191 && nPart < 224 && nIdx + 1 < nLen /* two bytes */
? ((nPart - 192) << 6) + aBytes[++nIdx] - 128
: /* nPart < 127 ? */ /* one byte */
nPart,
? ((nPart - 248) << 24) +
((aBytes[++nIdx] - 128) << 18) +
((aBytes[++nIdx] - 128) << 12) +
((aBytes[++nIdx] - 128) << 6) +
aBytes[++nIdx] -
128
: nPart > 239 && nPart < 248 && nIdx + 3 < nLen /* four bytes */
? ((nPart - 240) << 18) +
((aBytes[++nIdx] - 128) << 12) +
((aBytes[++nIdx] - 128) << 6) +
aBytes[++nIdx] -
128
: nPart > 223 && nPart < 240 && nIdx + 2 < nLen /* three bytes */
? ((nPart - 224) << 12) +
((aBytes[++nIdx] - 128) << 6) +
aBytes[++nIdx] -
128
: nPart > 191 && nPart < 224 && nIdx + 1 < nLen /* two bytes */
? ((nPart - 192) << 6) + aBytes[++nIdx] - 128
: /* nPart < 127 ? */ /* one byte */
nPart,
yin1999 marked this conversation as resolved.
Show resolved Hide resolved
);
}

Expand All @@ -265,14 +265,14 @@ function strToUTF8Arr(sDOMStr) {
nChr < 0x80
? 1
: nChr < 0x800
? 2
: nChr < 0x10000
? 3
: nChr < 0x200000
? 4
: nChr < 0x4000000
? 5
: 6;
? 2
: nChr < 0x10000
? 3
: nChr < 0x200000
? 4
: nChr < 0x4000000
? 5
: 6;
yin1999 marked this conversation as resolved.
Show resolved Hide resolved
}

aBytes = new Uint8Array(nArrLen);
Expand Down
8 changes: 4 additions & 4 deletions files/es/web/api/window/scrolly/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ var isCSS1Compat = (document.compatMode || "") === "CSS1Compat";
var x = supportPageOffset
? window.pageXOffset
: isCSS1Compat
? document.documentElement.scrollLeft
: document.body.scrollLeft;
? document.documentElement.scrollLeft
: document.body.scrollLeft;
yin1999 marked this conversation as resolved.
Show resolved Hide resolved
var y = supportPageOffset
? window.pageYOffset
: isCSS1Compat
? document.documentElement.scrollTop
: document.body.scrollTop;
? document.documentElement.scrollTop
: document.body.scrollTop;
yin1999 marked this conversation as resolved.
Show resolved Hide resolved
```

## Especificación
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -475,8 +475,8 @@ formas de _enviar_, y de **subir archivos**:
? this.contentType === "multipart\/form-data"
? 3
: this.contentType === "text\/plain"
? 2
: 1
? 2
: 1
yin1999 marked this conversation as resolved.
Show resolved Hide resolved
: 0;
this.receiver = oTarget.action;
this.status = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ if (!Array.prototype.copyWithin) {
positiveT
? [target, stop - start, hold]
: positiveS
? [target, stop, hold]
: [target, start, hold],
? [target, stop, hold]
: [target, start, hold],
yin1999 marked this conversation as resolved.
Show resolved Hide resolved
),
this.join(delimiter).split(delimiter).slice(zero, length)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ var docCookies = new Proxy(docCookies, {
return oTarget.setItem(sKey, vValue);
},
deleteProperty: function (oTarget, sKey) {
if (!sKey in oTarget) {
if ((!sKey) in oTarget) {
yin1999 marked this conversation as resolved.
Show resolved Hide resolved
return false;
}
return oTarget.removeItem(sKey);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ var firstCheck = false,
access = firstCheck
? "Acceso Denegado"
: secondCheck
? "Acceso Denegado"
: "Acceso Permitido";
? "Acceso Denegado"
: "Acceso Permitido";
yin1999 marked this conversation as resolved.
Show resolved Hide resolved

console.log(access); // muestra "Acceso Permitido"
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ let classes = "header";
classes += isLargeScreen()
? ""
: item.isCollapsed
? " icon-expander"
: " icon-collapser";
? " icon-expander"
: " icon-collapser";
yin1999 marked this conversation as resolved.
Show resolved Hide resolved
```

En ES2015 con plantillas literales y sin anidamiento:
Expand Down
90 changes: 45 additions & 45 deletions files/fr/glossary/base64/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ function b64ToUint6(nChr) {
return nChr > 64 && nChr < 91
? nChr - 65
: nChr > 96 && nChr < 123
? nChr - 71
: nChr > 47 && nChr < 58
? nChr + 4
: nChr === 43
? 62
: nChr === 47
? 63
: 0;
? nChr - 71
: nChr > 47 && nChr < 58
? nChr + 4
: nChr === 43
? 62
: nChr === 47
? 63
: 0;
yin1999 marked this conversation as resolved.
Show resolved Hide resolved
}

function base64DecToArr(sBase64, nBlocksSize) {
Expand Down Expand Up @@ -130,14 +130,14 @@ function uint6ToB64(nUint6) {
return nUint6 < 26
? nUint6 + 65
: nUint6 < 52
? nUint6 + 71
: nUint6 < 62
? nUint6 - 4
: nUint6 === 62
? 43
: nUint6 === 63
? 47
: 65;
? nUint6 + 71
: nUint6 < 62
? nUint6 - 4
: nUint6 === 62
? 43
: nUint6 === 63
? 47
: 65;
yin1999 marked this conversation as resolved.
Show resolved Hide resolved
}

function base64EncArr(aBytes) {
Expand Down Expand Up @@ -187,27 +187,27 @@ function UTF8ArrToStr(aBytes) {
aBytes[++nIdx] -
128
: nPart > 247 && nPart < 252 && nIdx + 4 < nLen /* cinq octets */
? ((nPart - 248) << 24) +
((aBytes[++nIdx] - 128) << 18) +
((aBytes[++nIdx] - 128) << 12) +
((aBytes[++nIdx] - 128) << 6) +
aBytes[++nIdx] -
128
: nPart > 239 && nPart < 248 && nIdx + 3 < nLen /* quatre octets */
? ((nPart - 240) << 18) +
((aBytes[++nIdx] - 128) << 12) +
((aBytes[++nIdx] - 128) << 6) +
aBytes[++nIdx] -
128
: nPart > 223 && nPart < 240 && nIdx + 2 < nLen /* trois octets */
? ((nPart - 224) << 12) +
((aBytes[++nIdx] - 128) << 6) +
aBytes[++nIdx] -
128
: nPart > 191 && nPart < 224 && nIdx + 1 < nLen /* deux octets */
? ((nPart - 192) << 6) + aBytes[++nIdx] - 128
: /* nPart < 127 ? */ /* un octet */
nPart,
? ((nPart - 248) << 24) +
((aBytes[++nIdx] - 128) << 18) +
((aBytes[++nIdx] - 128) << 12) +
((aBytes[++nIdx] - 128) << 6) +
aBytes[++nIdx] -
128
: nPart > 239 && nPart < 248 && nIdx + 3 < nLen /* quatre octets */
? ((nPart - 240) << 18) +
((aBytes[++nIdx] - 128) << 12) +
((aBytes[++nIdx] - 128) << 6) +
aBytes[++nIdx] -
128
: nPart > 223 && nPart < 240 && nIdx + 2 < nLen /* trois octets */
? ((nPart - 224) << 12) +
((aBytes[++nIdx] - 128) << 6) +
aBytes[++nIdx] -
128
: nPart > 191 && nPart < 224 && nIdx + 1 < nLen /* deux octets */
? ((nPart - 192) << 6) + aBytes[++nIdx] - 128
: /* nPart < 127 ? */ /* un octet */
nPart,
yin1999 marked this conversation as resolved.
Show resolved Hide resolved
);
}
return sView;
Expand All @@ -229,14 +229,14 @@ function strToUTF8Arr(sDOMStr) {
nChr < 0x80
? 1
: nChr < 0x800
? 2
: nChr < 0x10000
? 3
: nChr < 0x200000
? 4
: nChr < 0x4000000
? 5
: 6;
? 2
: nChr < 0x10000
? 3
: nChr < 0x200000
? 4
: nChr < 0x4000000
? 5
: 6;
Comment on lines +232 to +239
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[mdn-linter] reported by reviewdog 🐶

Suggested change
? 2
: nChr < 0x10000
? 3
: nChr < 0x200000
? 4
: nChr < 0x4000000
? 5
: 6;
? 2
: nChr < 0x10000
? 3
: nChr < 0x200000
? 4
: nChr < 0x4000000
? 5
: 6;

}
aBytes = new Uint8Array(nArrLen);

Expand Down
10 changes: 4 additions & 6 deletions files/fr/learn/javascript/asynchronous/introducing/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,8 @@ function genererNbPremiers(quota) {
document.querySelector("#generer").addEventListener("click", () => {
const quota = document.querySelector("#quota").value;
const nbPremiers = genererNbPremiers(quota);
document.querySelector(
"#output",
).textContent = `Génération de ${quota} nombres premiers terminée !`;
document.querySelector("#output").textContent =
`Génération de ${quota} nombres premiers terminée !`;
Comment on lines +112 to +113
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[mdn-linter] reported by reviewdog 🐶

Suggested change
document.querySelector("#output").textContent =
`Génération de ${quota} nombres premiers terminée !`;
document.querySelector(
"#output",
).textContent = `Génération de ${quota} nombres premiers terminée !`;

});

document.querySelector("#recharger").addEventListener("click", () => {
Expand Down Expand Up @@ -177,9 +176,8 @@ function genererNbPremiers(quota) {
document.querySelector("#generer").addEventListener("click", () => {
const quota = document.querySelector("#quota").value;
const nbPremiers = genererNbPremiers(quota);
document.querySelector(
"#output",
).textContent = `Génération de ${quota} nombres premiers terminée !`;
document.querySelector("#output").textContent =
`Génération de ${quota} nombres premiers terminée !`;
yin1999 marked this conversation as resolved.
Show resolved Hide resolved
});

document.querySelector("#recharger").addEventListener("click", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,8 @@ function generatePrimes(quota) {
document.querySelector("#generate").addEventListener("click", () => {
const quota = document.querySelector("#quota").value;
const primes = generatePrimes(quota);
document.querySelector(
"#output",
).textContent = `Génération de ${quota} nombres premiers terminée !`;
document.querySelector("#output").textContent =
`Génération de ${quota} nombres premiers terminée !`;
yin1999 marked this conversation as resolved.
Show resolved Hide resolved
});

document.querySelector("#reload").addEventListener("click", () => {
Expand Down Expand Up @@ -159,9 +158,8 @@ document.querySelector("#generate").addEventListener("click", () => {
// du message, on met à jour la zone de sortie avec un texte, indiquant aussi
// le quantité de nombres premiers générés.
worker.addEventListener("message", (message) => {
document.querySelector(
"#output",
).textContent = `Génération de ${message.data} nombres premiers terminée !`;
document.querySelector("#output").textContent =
`Génération de ${message.data} nombres premiers terminée !`;
yin1999 marked this conversation as resolved.
Show resolved Hide resolved
});

document.querySelector("#reload").addEventListener("click", () => {
Expand Down
12 changes: 6 additions & 6 deletions files/fr/web/api/event/eventphase/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,12 @@ function onDivClick(e) {
e.eventPhase == 0
? "none"
: e.eventPhase == 1
? "capturing"
: e.eventPhase == 2
? "target"
: e.eventPhase == 3
? "bubbling"
: "error";
? "capturing"
: e.eventPhase == 2
? "target"
: e.eventPhase == 3
? "bubbling"
: "error";
yin1999 marked this conversation as resolved.
Show resolved Hide resolved
const para = document.createElement("p");
para.textContent = `${e.currentTarget.id}; eventPhase: ${level}`;
divInfo.appendChild(para);
Expand Down
Loading
Loading