Skip to content

Commit b820099

Browse files
authored
Allow prettier to format more files (#1966)
* allow prettier to format more files It's my opinion that for these 20 files, we should not have a strong opinion on the formatting, and therefore should just accept what prettier gives us. This leaves only 13 files ignored. That leaves much less manual work needed. * dominoes: we affirm that inputs should be on one line * book-store,bowling,change,vlq: inputs on one line (vlq = variable-length-quantity)
1 parent 8fd4390 commit b820099

File tree

16 files changed

+137
-438
lines changed

16 files changed

+137
-438
lines changed

.prettierignore

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
exercises/allergies/canonical-data.json
21
exercises/book-store/canonical-data.json
32
exercises/bowling/canonical-data.json
43
exercises/change/canonical-data.json
@@ -8,26 +7,12 @@ exercises/dominoes/canonical-data.json
87
exercises/flatten-array/canonical-data.json
98
exercises/forth/canonical-data.json
109
exercises/go-counting/canonical-data.json
11-
exercises/grep/canonical-data.json
12-
exercises/house/canonical-data.json
13-
exercises/kindergarten-garden/canonical-data.json
14-
exercises/knapsack/canonical-data.json
15-
exercises/markdown/canonical-data.json
1610
exercises/minesweeper/canonical-data.json
1711
exercises/ocr-numbers/canonical-data.json
18-
exercises/pascals-triangle/canonical-data.json
19-
exercises/poker/canonical-data.json
20-
exercises/pov/canonical-data.json
21-
exercises/pythagorean-triplet/canonical-data.json
2212
exercises/rectangles/canonical-data.json
23-
exercises/reverse-string/canonical-data.json
24-
exercises/roman-numerals/canonical-data.json
25-
exercises/rotational-cipher/canonical-data.json
2613
exercises/saddle-points/canonical-data.json
2714
exercises/scale-generator/canonical-data.json
2815
exercises/sieve/canonical-data.json
29-
exercises/spiral-matrix/canonical-data.json
30-
exercises/tournament/canonical-data.json
3116
exercises/transpose/canonical-data.json
3217
exercises/variable-length-quantity/canonical-data.json
3318
exercises/word-search/canonical-data.json

exercises/allergies/canonical-data.json

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -447,9 +447,7 @@
447447
},
448448
{
449449
"description": "list when:",
450-
"comments": [
451-
"Given a number, list all things Tom is allergic to"
452-
],
450+
"comments": ["Given a number, list all things Tom is allergic to"],
453451
"cases": [
454452
{
455453
"uuid": "f9c1b8e7-7dc5-4887-aa93-cebdcc29dd8f",
@@ -467,9 +465,7 @@
467465
"input": {
468466
"score": 1
469467
},
470-
"expected": [
471-
"eggs"
472-
]
468+
"expected": ["eggs"]
473469
},
474470
{
475471
"uuid": "8851c973-805e-4283-9e01-d0c0da0e4695",
@@ -478,9 +474,7 @@
478474
"input": {
479475
"score": 2
480476
},
481-
"expected": [
482-
"peanuts"
483-
]
477+
"expected": ["peanuts"]
484478
},
485479
{
486480
"uuid": "2c8943cb-005e-435f-ae11-3e8fb558ea98",
@@ -489,9 +483,7 @@
489483
"input": {
490484
"score": 8
491485
},
492-
"expected": [
493-
"strawberries"
494-
]
486+
"expected": ["strawberries"]
495487
},
496488
{
497489
"uuid": "6fa95d26-044c-48a9-8a7b-9ee46ec32c5c",
@@ -500,10 +492,7 @@
500492
"input": {
501493
"score": 3
502494
},
503-
"expected": [
504-
"eggs",
505-
"peanuts"
506-
]
495+
"expected": ["eggs", "peanuts"]
507496
},
508497
{
509498
"uuid": "19890e22-f63f-4c5c-a9fb-fb6eacddfe8e",
@@ -512,10 +501,7 @@
512501
"input": {
513502
"score": 5
514503
},
515-
"expected": [
516-
"eggs",
517-
"shellfish"
518-
]
504+
"expected": ["eggs", "shellfish"]
519505
},
520506
{
521507
"uuid": "4b68f470-067c-44e4-889f-c9fe28917d2f",

exercises/grep/canonical-data.json

Lines changed: 10 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@
6464
"flags": [],
6565
"files": ["iliad.txt"]
6666
},
67-
"expected": [
68-
"Of Atreus, Agamemnon, King of men."
69-
]
67+
"expected": ["Of Atreus, Agamemnon, King of men."]
7068
},
7169
{
7270
"uuid": "76519cce-98e3-46cd-b287-aac31b1d77d6",
@@ -77,9 +75,7 @@
7775
"flags": ["-n"],
7876
"files": ["paradise-lost.txt"]
7977
},
80-
"expected": [
81-
"2:Of that Forbidden Tree, whose mortal tast"
82-
]
78+
"expected": ["2:Of that Forbidden Tree, whose mortal tast"]
8379
},
8480
{
8581
"uuid": "af0b6d3c-e0e8-475e-a112-c0fc10a1eb30",
@@ -90,9 +86,7 @@
9086
"flags": ["-i"],
9187
"files": ["paradise-lost.txt"]
9288
},
93-
"expected": [
94-
"Of that Forbidden Tree, whose mortal tast"
95-
]
89+
"expected": ["Of that Forbidden Tree, whose mortal tast"]
9690
},
9791
{
9892
"uuid": "ff7af839-d1b8-4856-a53e-99283579b672",
@@ -103,9 +97,7 @@
10397
"flags": ["-l"],
10498
"files": ["paradise-lost.txt"]
10599
},
106-
"expected": [
107-
"paradise-lost.txt"
108-
]
100+
"expected": ["paradise-lost.txt"]
109101
},
110102
{
111103
"uuid": "8625238a-720c-4a16-81f2-924ec8e222cb",
@@ -116,9 +108,7 @@
116108
"flags": ["-x"],
117109
"files": ["paradise-lost.txt"]
118110
},
119-
"expected": [
120-
"With loss of Eden, till one greater Man"
121-
]
111+
"expected": ["With loss of Eden, till one greater Man"]
122112
},
123113
{
124114
"uuid": "2a6266b3-a60f-475c-a5f5-f5008a717d3e",
@@ -129,9 +119,7 @@
129119
"flags": ["-n", "-i", "-x"],
130120
"files": ["iliad.txt"]
131121
},
132-
"expected": [
133-
"9:Of Atreus, Agamemnon, King of men."
134-
]
122+
"expected": ["9:Of Atreus, Agamemnon, King of men."]
135123
},
136124
{
137125
"uuid": "842222da-32e8-4646-89df-0d38220f77a1",
@@ -225,9 +213,7 @@
225213
"flags": ["-n", "-l"],
226214
"files": ["iliad.txt"]
227215
},
228-
"expected": [
229-
"iliad.txt"
230-
]
216+
"expected": ["iliad.txt"]
231217
},
232218
{
233219
"uuid": "87b21b24-b788-4d6e-a68b-7afe9ca141fe",
@@ -263,9 +249,7 @@
263249
"flags": [],
264250
"files": ["iliad.txt", "midsummer-night.txt", "paradise-lost.txt"]
265251
},
266-
"expected": [
267-
"iliad.txt:Of Atreus, Agamemnon, King of men."
268-
]
252+
"expected": ["iliad.txt:Of Atreus, Agamemnon, King of men."]
269253
},
270254
{
271255
"uuid": "4539bd36-6daa-4bc3-8e45-051f69f5aa95",
@@ -307,10 +291,7 @@
307291
"flags": ["-l"],
308292
"files": ["iliad.txt", "midsummer-night.txt", "paradise-lost.txt"]
309293
},
310-
"expected": [
311-
"iliad.txt",
312-
"paradise-lost.txt"
313-
]
294+
"expected": ["iliad.txt", "paradise-lost.txt"]
314295
},
315296
{
316297
"uuid": "d69f3606-7d15-4ddf-89ae-01df198e6b6c",
@@ -395,10 +376,7 @@
395376
"flags": ["-n", "-l"],
396377
"files": ["iliad.txt", "midsummer-night.txt", "paradise-lost.txt"]
397378
},
398-
"expected": [
399-
"iliad.txt",
400-
"paradise-lost.txt"
401-
]
379+
"expected": ["iliad.txt", "paradise-lost.txt"]
402380
},
403381
{
404382
"uuid": "ff406330-2f0b-4b17-9ee4-4b71c31dd6d2",

exercises/house/canonical-data.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
"startVerse": 1,
2020
"endVerse": 1
2121
},
22-
"expected": [
23-
"This is the house that Jack built."
24-
]
22+
"expected": ["This is the house that Jack built."]
2523
},
2624
{
2725
"uuid": "ebc825ac-6e2b-4a5e-9afd-95732191c8da",
@@ -31,9 +29,7 @@
3129
"startVerse": 2,
3230
"endVerse": 2
3331
},
34-
"expected": [
35-
"This is the malt that lay in the house that Jack built."
36-
]
32+
"expected": ["This is the malt that lay in the house that Jack built."]
3733
},
3834
{
3935
"uuid": "1ed8bb0f-edb8-4bd1-b6d4-b64754fe4a60",

0 commit comments

Comments
 (0)