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

Bump prettier from 2.8.8 to 3.0.0 #2214

Merged
merged 2 commits into from
Jul 28, 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
2 changes: 1 addition & 1 deletion concepts/array-transformations/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ arr.reduce(

return accumulator;
},
{ even: [], odd: [] }
{ even: [], odd: [] },
);
// => { even: [2, 4], odd: [1, 3] }
```
Expand Down
2 changes: 1 addition & 1 deletion concepts/array-transformations/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ arr.reduce(

return accumulator;
},
{ even: [], odd: [] }
{ even: [], odd: [] },
);
// => { even: [2, 4], odd: [1, 3] }
```
Expand Down
4 changes: 2 additions & 2 deletions concepts/promises/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ Promise.reject(new Error('failed')).then(
},
function (error) {
console.error(error); // error in the console
}
},
);
```

Expand All @@ -127,7 +127,7 @@ Promise.resolve('resolved!').then(
},
function (value) {
// not called
}
},
);
```

Expand Down
2 changes: 1 addition & 1 deletion exercises/concept/annalyns-infiltration/.meta/exemplar.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function canFreePrisoner(
knightIsAwake,
archerIsAwake,
prisonerIsAwake,
petDogIsPresent
petDogIsPresent,
) {
return (
(!knightIsAwake && !archerIsAwake && prisonerIsAwake) ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function canFreePrisoner(
knightIsAwake,
archerIsAwake,
prisonerIsAwake,
petDogIsPresent
petDogIsPresent,
) {
throw new Error('Remove this line and implement the function');
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('can spy', () => {
const expected = false;

expect(canSpy(knightIsAwake, archerIsAwake, prisonerIsAwake)).toBe(
expected
expected,
);
});

Expand All @@ -40,7 +40,7 @@ describe('can spy', () => {
const expected = true;

expect(canSpy(knightIsAwake, archerIsAwake, prisonerIsAwake)).toBe(
expected
expected,
);
});

Expand All @@ -51,7 +51,7 @@ describe('can spy', () => {
const expected = true;

expect(canSpy(knightIsAwake, archerIsAwake, prisonerIsAwake)).toBe(
expected
expected,
);
});

Expand All @@ -62,7 +62,7 @@ describe('can spy', () => {
const expected = true;

expect(canSpy(knightIsAwake, archerIsAwake, prisonerIsAwake)).toBe(
expected
expected,
);
});

Expand All @@ -73,7 +73,7 @@ describe('can spy', () => {
const expected = true;

expect(canSpy(knightIsAwake, archerIsAwake, prisonerIsAwake)).toBe(
expected
expected,
);
});

Expand All @@ -84,7 +84,7 @@ describe('can spy', () => {
const expected = true;

expect(canSpy(knightIsAwake, archerIsAwake, prisonerIsAwake)).toBe(
expected
expected,
);
});

Expand All @@ -95,7 +95,7 @@ describe('can spy', () => {
const expected = true;

expect(canSpy(knightIsAwake, archerIsAwake, prisonerIsAwake)).toBe(
expected
expected,
);
});
});
Expand Down Expand Up @@ -147,8 +147,8 @@ describe('can free prisoner', () => {
knightIsAwake,
archerIsAwake,
prisonerIsAwake,
petDogIsPresent
)
petDogIsPresent,
),
).toBe(expected);
});

Expand All @@ -164,8 +164,8 @@ describe('can free prisoner', () => {
knightIsAwake,
archerIsAwake,
prisonerIsAwake,
petDogIsPresent
)
petDogIsPresent,
),
).toBe(expected);
});

Expand All @@ -181,8 +181,8 @@ describe('can free prisoner', () => {
knightIsAwake,
archerIsAwake,
prisonerIsAwake,
petDogIsPresent
)
petDogIsPresent,
),
).toBe(expected);
});

Expand All @@ -198,8 +198,8 @@ describe('can free prisoner', () => {
knightIsAwake,
archerIsAwake,
prisonerIsAwake,
petDogIsPresent
)
petDogIsPresent,
),
).toBe(expected);
});

Expand All @@ -215,8 +215,8 @@ describe('can free prisoner', () => {
knightIsAwake,
archerIsAwake,
prisonerIsAwake,
petDogIsPresent
)
petDogIsPresent,
),
).toBe(expected);
});

Expand All @@ -232,8 +232,8 @@ describe('can free prisoner', () => {
knightIsAwake,
archerIsAwake,
prisonerIsAwake,
petDogIsPresent
)
petDogIsPresent,
),
).toBe(expected);
});

Expand All @@ -249,8 +249,8 @@ describe('can free prisoner', () => {
knightIsAwake,
archerIsAwake,
prisonerIsAwake,
petDogIsPresent
)
petDogIsPresent,
),
).toBe(expected);
});

Expand All @@ -266,8 +266,8 @@ describe('can free prisoner', () => {
knightIsAwake,
archerIsAwake,
prisonerIsAwake,
petDogIsPresent
)
petDogIsPresent,
),
).toBe(expected);
});

Expand All @@ -283,8 +283,8 @@ describe('can free prisoner', () => {
knightIsAwake,
archerIsAwake,
prisonerIsAwake,
petDogIsPresent
)
petDogIsPresent,
),
).toBe(expected);
});

Expand All @@ -300,8 +300,8 @@ describe('can free prisoner', () => {
knightIsAwake,
archerIsAwake,
prisonerIsAwake,
petDogIsPresent
)
petDogIsPresent,
),
).toBe(expected);
});

Expand All @@ -317,8 +317,8 @@ describe('can free prisoner', () => {
knightIsAwake,
archerIsAwake,
prisonerIsAwake,
petDogIsPresent
)
petDogIsPresent,
),
).toBe(expected);
});

Expand All @@ -334,8 +334,8 @@ describe('can free prisoner', () => {
knightIsAwake,
archerIsAwake,
prisonerIsAwake,
petDogIsPresent
)
petDogIsPresent,
),
).toBe(expected);
});

Expand All @@ -351,8 +351,8 @@ describe('can free prisoner', () => {
knightIsAwake,
archerIsAwake,
prisonerIsAwake,
petDogIsPresent
)
petDogIsPresent,
),
).toBe(expected);
});

Expand All @@ -368,8 +368,8 @@ describe('can free prisoner', () => {
knightIsAwake,
archerIsAwake,
prisonerIsAwake,
petDogIsPresent
)
petDogIsPresent,
),
).toBe(expected);
});

Expand All @@ -385,8 +385,8 @@ describe('can free prisoner', () => {
knightIsAwake,
archerIsAwake,
prisonerIsAwake,
petDogIsPresent
)
petDogIsPresent,
),
).toBe(expected);
});

Expand All @@ -402,8 +402,8 @@ describe('can free prisoner', () => {
knightIsAwake,
archerIsAwake,
prisonerIsAwake,
petDogIsPresent
)
petDogIsPresent,
),
).toBe(expected);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const moveCoordinatesRight2Px = translate2d(2, 0);
const doubleCoordinates = scale2d(2, 2);
const composedTransformations = composeTransformation(
moveCoordinatesRight2Px,
doubleCoordinates
doubleCoordinates,
);
const result = composedTransformations(0, 1);
// result => [4, 2]
Expand Down
6 changes: 3 additions & 3 deletions exercises/concept/custom-signs/custom-signs.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,19 @@ describe('buildSign', () => {
describe('buildBirthdaySign', () => {
test('age is less than 50', () => {
expect(buildBirthdaySign(49)).toBe(
'Happy Birthday! What a young fellow you are.'
'Happy Birthday! What a young fellow you are.',
);
});

test('age is 50 or older', () => {
expect(buildBirthdaySign(51)).toBe(
'Happy Birthday! What a mature fellow you are.'
'Happy Birthday! What a mature fellow you are.',
);
});

test('age is 50', () => {
expect(buildBirthdaySign(50)).toBe(
'Happy Birthday! What a mature fellow you are.'
'Happy Birthday! What a mature fellow you are.',
);
});
});
Expand Down
4 changes: 2 additions & 2 deletions exercises/concept/elyses-enchantments/enchantments.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ describe('make cards disappear', () => {
// eslint-disable-next-line no-undef
fail(
new Error(
'The card has disappeared, but the stack has not changed in size. This magic trick has turned into actual magic. Perhaps a different method of removing the card will result in a stack that Elyse can work with...'
)
'The card has disappeared, but the stack has not changed in size. This magic trick has turned into actual magic. Perhaps a different method of removing the card will result in a stack that Elyse can work with...',
),
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ arr.reduce(

return accumulator;
},
{ even: [], odd: [] }
{ even: [], odd: [] },
);
// => { even: [2, 4], odd: [1, 3] }
```
Expand Down
2 changes: 1 addition & 1 deletion exercises/concept/fruit-picker/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const query = {
orderFromGrocer(
{ variety: 'pear', quantity: 12 },
exampleSuccessCallback,
exampleErrorCallback
exampleErrorCallback,
);
// => `order` was called with the query and the callbacks
```
Expand Down
2 changes: 1 addition & 1 deletion exercises/concept/fruit-picker/fruit-picker.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe('task 4', () => {
expect(order).toHaveBeenCalledWith(
{ variety, quantity },
onSuccess,
onError
onError,
);
});
});
2 changes: 1 addition & 1 deletion exercises/concept/fruit-picker/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ declare module 'grocer' {
function order(
query: GrocerQuery,
onSuccess: GrocerOnSuccessCallback,
onError: GrocerOnErrorCallback
onError: GrocerOnErrorCallback,
): void;
}

Expand Down
2 changes: 1 addition & 1 deletion exercises/concept/lasagna-master/lasagna-master.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ function expectObjectsToBeEqual(actualObj, expectedObj) {
for (const key in expectedObj) {
expect(actualObj[key]).toBeCloseTo(
expectedObj[key],
DIFFERENCE_PRECISION_IN_DIGITS
DIFFERENCE_PRECISION_IN_DIGITS,
);
}
expect(Object.keys(actualObj).length).toBe(Object.keys(expectedObj).length);
Expand Down
2 changes: 1 addition & 1 deletion exercises/concept/pizza-order/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pizzaPrice(
'ExtraToppings',
'ExtraToppings',
'ExtraToppings',
'ExtraToppings'
'ExtraToppings',
);
// => 17
```
Expand Down
2 changes: 1 addition & 1 deletion exercises/concept/pizza-order/.meta/exemplar.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ export function pizzaPrice(pizza, ...[extra, ...otherExtras]) {
export function orderPrice(pizzaOrders) {
return pizzaOrders.reduce(
(result, order) => result + pizzaPrice(order.pizza, ...order.extras),
0
0,
);
}
Loading