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.3.2 to 3.3.3 #22423

Merged
merged 3 commits into from
Jul 17, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ L'en-tête d'une boucle [`for...in`](/fr/docs/Web/JavaScript/Reference/Instructi

Cet exemple déclenchera une exception `SyntaxError` :

```js example-bad
"use strict";

var obj = {a: 1, b: 2, c: 3 };
```js-nolint example-bad
const obj = { a: 1, b: 2, c: 3 };

for (var i = 0 in obj) {
for (const i = 0 in obj) {
console.log(obj[i]);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,10 @@ SyntaxError: for-in loop variable declaration may not have an initializer. (Chro

この例では `SyntaxError` が発生します。

```js example-bad
"use strict";

var obj = {a: 1, b: 2, c: 3 };
```js-nolint example-bad
const obj = { a: 1, b: 2, c: 3 };

for (var i = 0 in obj) {
for (const i = 0 in obj) {
console.log(obj[i]);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ slug: Web/JavaScript/Reference/Errors/Invalid_for-in_initializer

이 예제는 `SyntaxError`를 발생시킵니다.

```js example-bad
"use strict";

var obj = {a: 1, b: 2, c: 3 };
```js-nolint example-bad
const obj = { a: 1, b: 2, c: 3 };

for (var i = 0 in obj) {
for (const i = 0 in obj) {
console.log(obj[i]);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function format(template, ...args) {
...args.map((num) =>
(Object.is(num, -0)
? "-0"
: formattedNumbers.get(num) ?? String(num)
: (formattedNumbers.get(num) ?? String(num))

This comment was marked as outdated.

).padEnd(5),
),
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ alert(show_own_props(o, "o")); /* alerts: o.color = red */
Prior to Firefox 40, it was possible to use an initializer expression
(`i=0`) in a `for...in` loop:

```js example-bad
```js-nolint example-bad
const obj = { a: 1, b: 2, c: 3 };
for (var i = 0 in obj) {
console.log(obj[i]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ No [modo estrito](/pt-BR/docs/Web/JavaScript/Reference/Strict_mode), contudo, é

Esse exemplo lança um `SyntaxError`:

```js example-bad
```js-nolint example-bad
const obj = { a: 1, b: 2, c: 3 };

for (const i = 0 in obj) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ for (var prop in obj) {

Anterior ao SpiderMonkey 40, era possível usar uma expressão inicial com o laço for...in, conforme exemplo que se segue:

```js example-bad
var obj = {a:1, b:2, c:3};
for(var i=0 in obj) {
```js-nolint example-bad
var obj = { a: 1, b: 2, c: 3 };
for (var i = 0 in obj) {
console.log(obj[i]);
}
// 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ for (var prop in obj) {

## Поддержка: инициализатор переменных

До SpiderMonkey 40, можно было инициализировать переменные (`i=0`) в цикле `for...in`:
До SpiderMonkey 40, можно было инициализировать переменные (`i = 0`) в цикле `for...in`:

```js example-bad
var obj = {a:1, b:2, c:3};
for(var i=0 in obj) {
```js-nolint example-bad
var obj = { a: 1, b: 2, c: 3 };
for (var i = 0 in obj) {
console.log(obj[i]);
}
// 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,10 @@ SyntaxError: for-in loop variable declaration may not have an initializer. (Chro

下面这个示例会报语法错误(`SyntaxError`):

```js example-bad
"use strict";

var obj = {a: 1, b: 2, c: 3 };
```js-nolint example-bad
const obj = { a: 1, b: 2, c: 3 };

for (var i = 0 in obj) {
for (const i = 0 in obj) {
console.log(obj[i]);
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"markdownlint-rule-search-replace": "1.2.0",
"mdast-util-from-markdown": "^2.0.1",
"ora": "^8.0.1",
"prettier": "3.3.2",
"prettier": "3.3.3",
"unist-util-visit": "^5.0.0",
"yargs": "^17.7.2"
}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -983,10 +983,10 @@ pidtree@~0.6.0:
resolved "https://registry.yarnpkg.com/pidtree/-/pidtree-0.6.0.tgz#90ad7b6d42d5841e69e0a2419ef38f8883aa057c"
integrity sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g==

[email protected].2:
version "3.3.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.2.tgz#03ff86dc7c835f2d2559ee76876a3914cec4a90a"
integrity sha512-rAVeHYMcv8ATV5d508CFdn+8/pHPpXeIid1DdrPwXnaAdH7cqjVbpJaT5eq4yRAFU/lsbwYwSF/n5iNrdJHPQA==
[email protected].3:
version "3.3.3"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.3.3.tgz#30c54fe0be0d8d12e6ae61dbb10109ea00d53105"
integrity sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==

punycode.js@^2.3.1:
version "2.3.1"
Expand Down
Loading