Skip to content

Commit ebc7f4c

Browse files
Bump prettier from 3.5.3 to 3.6.2 (#2740)
* Bump prettier from 3.5.3 to 3.6.2 Bumps [prettier](https://github.com/prettier/prettier) from 3.5.3 to 3.6.2. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](prettier/prettier@3.5.3...3.6.2) --- updated-dependencies: - dependency-name: prettier dependency-version: 3.6.2 dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * [CI] Format code --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 0dc36b8 commit ebc7f4c

File tree

9 files changed

+6
-29
lines changed

9 files changed

+6
-29
lines changed

concepts/callbacks/about.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ You see this pattern often when dealing with asynchronous functions to assist wi
8181
Common `Array` functions use callback functions to define their behaviour:
8282

8383
- `Array.prototype.forEach`:
84-
8584
- Accepts a callback, which applies the callback to each element of an array.
8685

8786
```javascript
@@ -92,7 +91,6 @@ Common `Array` functions use callback functions to define their behaviour:
9291
```
9392

9493
- `Array.prototype.map`
95-
9694
- Accepts a callback, which applies the callback to each element of an array using the result to create a new array.
9795

9896
```javascript
@@ -103,7 +101,6 @@ Common `Array` functions use callback functions to define their behaviour:
103101
```
104102

105103
- `Array.prototype.reduce`
106-
107104
- Accepts a callback, which applies the callback to each element of an array, passing the result forward to the next invocation.
108105

109106
```javascript

concepts/closures/about.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ The name _closure_ is historically derived from [_λ-calculus_][wiki-lambda-calc
1818
## Reasons to use closures in JavaScript
1919

2020
1. Data Privacy / Data Encapsulation
21-
2221
- Unlike other languages, in 2020, there was no way to specify _private_ variables. So closures can be used to effectively emulate _private_ variables (there was a proposal to introduce private variable notation, which might have become standard by the time you read this).
2322

2423
```javascript
@@ -37,7 +36,6 @@ The name _closure_ is historically derived from [_λ-calculus_][wiki-lambda-calc
3736
```
3837

3938
2. Partial Application
40-
4139
- Functions may return functions, and when a returned function uses the argument of the function that created it, this is an example of using a closure to perform partial application. Sometimes this is called _currying_ a function.
4240

4341
```javascript

exercises/concept/amusement-park/.meta/design.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,22 @@ This exercise could benefit from the following rules in the [analyzer][analyzer]
3232
The comment types mentioned below only serve as a proposal.
3333

3434
1. `createVisitor`
35-
3635
- `actionable`: If the student used a helper variable, give feedback that the result can be returned directly.
3736
- `celebratory`: If the student used classes, celebrate but let them know it is not necessary throughout this exercise.
3837
- `informative`: If the student did not use the short-hand notation but wrote `name: name` etc instead, let them know how to shorten that.
3938
The solution should be accepted nevertheless.
4039

4140
2. `revokeTicket`
42-
4341
- `essential`: Check the ticketId field is not deleted and re-added.
4442
- `celebratory`: If they used a method on a visitor class, celebrate but let them know it is not necessary for this exercise.
4543

4644
3. `ticketStatus`
47-
4845
- `essential`: Using a type switch should be discouraged since it is confusing to read because of the `typeof null === 'object'` quirk.
4946
- `informative`: If the student did not use early returns, maybe let them know about this alternative.
5047
- `celebratory`: Congratulate if the student used a template string for the "sold" case
5148
- `celebratory`: Congratulate if the student used a `value` helper variable.
5249

5350
4. `simpleTicketStatus`
54-
5551
- `essential`: Check `??` was used and not an if-statement or something else.
5652
- `actionable`: If the student used a helper variable, give feedback that the result can be returned directly.
5753

exercises/concept/bird-watcher/.meta/design.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,19 +36,16 @@ This exercise could benefit from the following rules in the [analyzer][analyzer]
3636
For all tasks check that the student actually used a for loop.
3737

3838
1. `totalBirdCount`
39-
4039
- Verify that the condition is written with `< x.length` instead of `<= y.length -1`.
4140
- Check whether a shorthand assignment `+=` was used to increase the sum (non-essential feedback).
4241
- Verify the total was properly initialized with `0` instead of e.g. `null`
4342
- Verify the increment operator was used in loop header step
4443

4544
2. `birdsInWeek`
46-
4745
- Verify a helper variable was used instead of duplicating the calculation in the initialization and condition of the loop
4846
- Other checks should be the same as for `totalBirdCount`
4947

5048
3. `fixBirdCountLog`
51-
5249
- Check whether a shorthand assignment `+=` was used to increase the loop counter (non-essential feedback)
5350
- Check whether the increment operator was used in the loop body
5451

exercises/concept/high-score-board/.meta/design.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,33 +40,27 @@ The Concepts this exercise unlocks are:
4040
This exercise could benefit from the following rules in the [analyzer][analyzer]:
4141

4242
1. `createScoreBoard`
43-
4443
- `essential`: Make sure no class, map etc. was created, there should be just an object.
4544
- `actionable`: If the student created an empty object first and then added the value, give feedback to include the entry in the object literal directly.
4645
- `actionable`: Check that the object was returned directly, no intermediate assignment to a variable necessary.
4746

4847
2. `addPlayer`
49-
5048
- `essential`: Check the assignment operator was used and no additional variables were declared.
5149

5250
3. `removePlayer`
53-
5451
- `essential`: Make sure `delete` was used and not set to undefined or null.
5552
- `actionable`: If there is additional code to check whether the key is present before deleting it, give feedback that this is not necessary.
5653

5754
4. `updateScore`
58-
5955
- `actionable`: If the student used a separate variable to calculate the new value first, tell them it is not necessary.
6056
- `actionable`: If the student did not use the shorthand assignment operator, tell them about it. If they used it already, give a `celebratory` comment.
6157

6258
5. `applyMondayBonus`
63-
6459
- `essential`: Check the student actually used `for...in`.
6560
- Same feedback as in `updateScore` applies.
6661
- Using `updateScore` in the solution should be treated as equally correct as the exemplar solution.
6762

6863
6. `normalizeScore`
69-
7064
- `actionable`: No intermediate variables necessary.
7165

7266
## Notes

exercises/concept/mixed-juices/.meta/design.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ This exercise could benefit from the following rules in the [analyzer][analyzer]
3838
The comment types mentioned below only serve as a proposal.
3939

4040
1. `timeToMixJuice`
41-
4241
- `essential`: Verify the student used a switch statement.
4342
Would be nice if we could give different feedback depending on what the student used instead.
4443
If it was if-else, comment that switch is better suited for so many different variants.
@@ -53,7 +52,6 @@ The comment types mentioned below only serve as a proposal.
5352
```
5453

5554
2. `limesToCut`
56-
5755
- A solution that uses `if (limes.length < 0) break;` instead of combining the conditions should be considered equally correct to the exemplar solution.
5856
The version in the exemplar file is shorter but the break version emphasizes that there is a special edge case.
5957
- `essential`: Verify that `while` was used.
@@ -68,7 +66,6 @@ The comment types mentioned below only serve as a proposal.
6866
- `celebratory`: Celebrate if the student used `++` and `+=`.
6967

7068
3. `remainingOrders`
71-
7269
- `essential`: Verify that do-while was used.
7370
If while was used instead, say that do-while is a better fit because there is always at least one iteration (because `timeLeft` is always > 0) and the condition can best be checked after running the code.
7471
- `essential`: Verify `timeToMixJuice` was reused instead of duplicating the code.

exercises/concept/ozans-playlist/.meta/design.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,9 @@ This exercise could benefit from the following rules in the [analyzer][analyzer]
3535
For all tasks, verify that the student actually used a `Set`.
3636

3737
1. `addTrack`
38-
3938
- Verify that there was no redundant `Set.has()` call
4039

4140
2. `deleteTrack`
42-
4341
- Verify that there was no redundant `Set.has()` call
4442

4543
[analyzer]: https://github.com/exercism/javascript-analyzer

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"expect": "^29.7.0",
2626
"globals": "^16.3.0",
2727
"jest": "^29.7.0",
28-
"prettier": "^3.5.3",
28+
"prettier": "^3.6.2",
2929
"shelljs": "^0.10.0"
3030
},
3131
"dependencies": {},

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)