Skip to content

Commit 034a0bd

Browse files
committed
and the package files...
1 parent 664a870 commit 034a0bd

8 files changed

+54
-56
lines changed

packages/starlight-spell-checker/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"retext-overuse": "^1.1.1",
6565
"retext-passive": "^5.0.0",
6666
"retext-profanities": "^8.0.0",
67-
"retext-quotes": "^6.0.1",
67+
"retext-quotes": "^6.0.2",
6868
"retext-readability": "^8.0.0",
6969
"retext-redundant-acronyms": "^5.0.0",
7070
"retext-repeated-words": "^5.0.0",

packages/starlight-spell-checker/tests/quotes.throwError.modeStraight.test.ts

+24-24
Original file line numberDiff line numberDiff line change
@@ -19,43 +19,43 @@ test('does not build with quotes throw error mode straight invalid English conte
1919
expectValidationErrorCount(output, 38, 1)
2020

2121
expectValidationErrors(output, '/', [
22-
['\'', ValidationErrorType.Quotes, 'quote', ['"']],
23-
['"', ValidationErrorType.Quotes, 'quote', ['\'']],
24-
['"', ValidationErrorType.Quotes, 'quote', ['\'']],
25-
['"', ValidationErrorType.Quotes, 'quote', ['\'']],
26-
['\'', ValidationErrorType.Quotes, 'quote', ['"']],
22+
["'", ValidationErrorType.Quotes, 'quote', ['"']],
23+
['"', ValidationErrorType.Quotes, 'quote', ["'"]],
24+
['"', ValidationErrorType.Quotes, 'quote', ["'"]],
25+
['"', ValidationErrorType.Quotes, 'quote', ["'"]],
26+
["'", ValidationErrorType.Quotes, 'quote', ['"']],
2727
['“', ValidationErrorType.Quotes, 'quote', ['"']],
28-
['‘', ValidationErrorType.Quotes, 'quote', ['\'']],
29-
['’', ValidationErrorType.Quotes, 'quote', ['\'']],
30-
['’', ValidationErrorType.Quotes, 'apostrophe', ['\'']],
28+
['‘', ValidationErrorType.Quotes, 'quote', ["'"]],
29+
['’', ValidationErrorType.Quotes, 'quote', ["'"]],
30+
['’', ValidationErrorType.Quotes, 'apostrophe', ["'"]],
3131
['”', ValidationErrorType.Quotes, 'quote', ['"']],
3232
['‘', ValidationErrorType.Quotes, 'quote', ['"']],
33-
['“', ValidationErrorType.Quotes, 'quote', ['\'']],
34-
['”', ValidationErrorType.Quotes, 'quote', ['\'']],
33+
['“', ValidationErrorType.Quotes, 'quote', ["'"]],
34+
['”', ValidationErrorType.Quotes, 'quote', ["'"]],
35+
['”', ValidationErrorType.Quotes, 'quote', ['"']],
36+
['’', ValidationErrorType.Quotes, 'apostrophe', ["'"]],
3537
['”', ValidationErrorType.Quotes, 'quote', ['"']],
36-
['’', ValidationErrorType.Quotes, 'apostrophe', ['\'']],
37-
['”', ValidationErrorType.Quotes, 'quote', ['\'']],
3838
['’', ValidationErrorType.Quotes, 'quote', ['"']],
39-
['‘', ValidationErrorType.Quotes, 'quote', ['\'']],
39+
['‘', ValidationErrorType.Quotes, 'quote', ["'"]],
4040
['‘', ValidationErrorType.Quotes, 'quote', ['"']],
41-
['“', ValidationErrorType.Quotes, 'quote', ['\'']],
42-
['\'', ValidationErrorType.Quotes, 'quote', ['"']],
43-
['"', ValidationErrorType.Quotes, 'quote', ['\'']],
44-
['\'', ValidationErrorType.Quotes, 'quote', ['"']],
45-
['\'', ValidationErrorType.Quotes, 'quote', ['"']],
46-
['"', ValidationErrorType.Quotes, 'quote', ['\'']],
47-
['\'', ValidationErrorType.Quotes, 'quote', ['"']],
41+
['“', ValidationErrorType.Quotes, 'quote', ["'"]],
42+
["'", ValidationErrorType.Quotes, 'quote', ['"']],
43+
['"', ValidationErrorType.Quotes, 'quote', ["'"]],
44+
["'", ValidationErrorType.Quotes, 'quote', ['"']],
45+
["'", ValidationErrorType.Quotes, 'quote', ['"']],
46+
['"', ValidationErrorType.Quotes, 'quote', ["'"]],
47+
["'", ValidationErrorType.Quotes, 'quote', ['"']],
4848
['“', ValidationErrorType.Quotes, 'quote', ['"']],
49-
['‘', ValidationErrorType.Quotes, 'quote', ['\'']],
49+
['‘', ValidationErrorType.Quotes, 'quote', ["'"]],
5050
['“', ValidationErrorType.Quotes, 'quote', ['"']],
5151
['”', ValidationErrorType.Quotes, 'quote', ['"']],
52-
['’', ValidationErrorType.Quotes, 'quote', ['\'']],
52+
['’', ValidationErrorType.Quotes, 'quote', ["'"]],
5353
['”', ValidationErrorType.Quotes, 'quote', ['"']],
5454
['‘', ValidationErrorType.Quotes, 'quote', ['"']],
55-
['“', ValidationErrorType.Quotes, 'quote', ['\'']],
55+
['“', ValidationErrorType.Quotes, 'quote', ["'"]],
5656
['‘', ValidationErrorType.Quotes, 'quote', ['"']],
5757
['’', ValidationErrorType.Quotes, 'quote', ['"']],
58-
['”', ValidationErrorType.Quotes, 'quote', ['\'']],
58+
['”', ValidationErrorType.Quotes, 'quote', ["'"]],
5959
['’', ValidationErrorType.Quotes, 'quote', ['"']],
6060
]);
6161
})

packages/starlight-spell-checker/tests/quotes.throwError.smartConfig.modeStraight.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ test('does not build with quotes throw error smart config mode straight invalid
3232
['«', ValidationErrorType.Quotes, 'quote', ["'"]],
3333
['»', ValidationErrorType.Quotes, 'quote', ["'"]],
3434
['›', ValidationErrorType.Quotes, 'quote', ['"']],
35-
['»', ValidationErrorType.Quotes, 'quote', ["'"]],
36-
['›', ValidationErrorType.Quotes, 'quote', ["'"]],
35+
['»', ValidationErrorType.Quotes, 'quote', ['"']],
36+
['›', ValidationErrorType.Quotes, 'quote', ['"']],
3737
['‹', ValidationErrorType.Quotes, 'quote', ['"']],
3838
['«', ValidationErrorType.Quotes, 'quote', ["'"]],
3939
["'", ValidationErrorType.Quotes, 'quote', ['"']],

packages/starlight-spell-checker/tests/quotes.throwError.smartConfig.test.ts

+12-12
Original file line numberDiff line numberDiff line change
@@ -20,34 +20,34 @@ test('does not build with quotes throw error smart config invalid English conten
2020

2121
expectValidationErrors(output, '/', [
2222
['"', ValidationErrorType.Quotes, 'quote', ['«']],
23-
['\'', ValidationErrorType.Quotes, 'quote', ['‹']],
24-
['\'', ValidationErrorType.Quotes, 'quote', ['›']],
25-
['\'', ValidationErrorType.Quotes, 'apostrophe', ['’']],
23+
["'", ValidationErrorType.Quotes, 'quote', ['‹']],
24+
["'", ValidationErrorType.Quotes, 'quote', ['›']],
25+
["'", ValidationErrorType.Quotes, 'apostrophe', ['’']],
2626
['"', ValidationErrorType.Quotes, 'quote', ['»']],
27-
['\'', ValidationErrorType.Quotes, 'quote', ['«']],
27+
["'", ValidationErrorType.Quotes, 'quote', ['«']],
2828
['"', ValidationErrorType.Quotes, 'quote', ['‹']],
2929
['"', ValidationErrorType.Quotes, 'quote', ['›']],
3030
['"', ValidationErrorType.Quotes, 'quote', ['‹']],
31-
['\'', ValidationErrorType.Quotes, 'quote', ['«']],
31+
["'", ValidationErrorType.Quotes, 'quote', ['«']],
3232
['‹', ValidationErrorType.Quotes, 'quote', ['«']],
3333
['«', ValidationErrorType.Quotes, 'quote', ['‹']],
3434
['»', ValidationErrorType.Quotes, 'quote', ['›']],
3535
['›', ValidationErrorType.Quotes, 'quote', ['»']],
36-
['»', ValidationErrorType.Quotes, 'quote', ['']],
36+
['', ValidationErrorType.Quotes, 'quote', ['»']],
3737
['‹', ValidationErrorType.Quotes, 'quote', ['«']],
3838
['«', ValidationErrorType.Quotes, 'quote', ['‹']],
3939
['"', ValidationErrorType.Quotes, 'quote', ['«']],
40-
['\'', ValidationErrorType.Quotes, 'quote', ['‹']],
40+
["'", ValidationErrorType.Quotes, 'quote', ['‹']],
4141
['"', ValidationErrorType.Quotes, 'quote', ['«']],
4242
['"', ValidationErrorType.Quotes, 'quote', ['»']],
43-
['\'', ValidationErrorType.Quotes, 'quote', ['›']],
43+
["'", ValidationErrorType.Quotes, 'quote', ['›']],
4444
['"', ValidationErrorType.Quotes, 'quote', ['»']],
45-
['\'', ValidationErrorType.Quotes, 'quote', ['«']],
45+
["'", ValidationErrorType.Quotes, 'quote', ['«']],
4646
['"', ValidationErrorType.Quotes, 'quote', ['‹']],
47-
['\'', ValidationErrorType.Quotes, 'quote', ['«']],
48-
['\'', ValidationErrorType.Quotes, 'quote', ['»']],
47+
["'", ValidationErrorType.Quotes, 'quote', ['«']],
48+
["'", ValidationErrorType.Quotes, 'quote', ['»']],
4949
['"', ValidationErrorType.Quotes, 'quote', ['›']],
50-
['\'', ValidationErrorType.Quotes, 'quote', ['»']],
50+
["'", ValidationErrorType.Quotes, 'quote', ['»']],
5151
['‹', ValidationErrorType.Quotes, 'quote', ['«']],
5252
['«', ValidationErrorType.Quotes, 'quote', ['‹']],
5353
['‹', ValidationErrorType.Quotes, 'quote', ['«']],

packages/starlight-spell-checker/tests/quotes.throwError.smartStraightConfig.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ test('does not build with quotes throw error smart straight config invalid Engli
5050
['»', ValidationErrorType.Quotes, 'quote', ['›']],
5151
["'", ValidationErrorType.Quotes, 'apostrophe', ['’']],
5252
['›', ValidationErrorType.Quotes, 'quote', ['»']],
53-
['»', ValidationErrorType.Quotes, 'quote', ['']],
53+
['', ValidationErrorType.Quotes, 'quote', ['»']],
5454
['‹', ValidationErrorType.Quotes, 'quote', ['«']],
5555
["'", ValidationErrorType.Quotes, 'apostrophe', ['’']],
5656
['«', ValidationErrorType.Quotes, 'quote', ['‹']],

packages/starlight-spell-checker/tests/quotes.throwError.straightConfig.modeStraight.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ test('does not build with quotes throw error straight config mode straight inval
3333
['”', ValidationErrorType.Quotes, 'quote', ['"']],
3434
['”', ValidationErrorType.Quotes, 'quote', ["'"]],
3535
['’', ValidationErrorType.Quotes, 'apostrophe', ["'"]],
36-
['”', ValidationErrorType.Quotes, 'quote', ['"']],
36+
['”', ValidationErrorType.Quotes, 'quote', ["'"]],
3737
['’', ValidationErrorType.Quotes, 'quote', ["'"]],
3838
['‘', ValidationErrorType.Quotes, 'quote', ['"']],
3939
['‘', ValidationErrorType.Quotes, 'quote', ["'"]],

packages/starlight-spell-checker/tests/quotes.throwError.straightConfig.test.ts

+12-13
Original file line numberDiff line numberDiff line change
@@ -16,38 +16,37 @@ test('does not build with quotes throw error straight config invalid English con
1616

1717
expect(status).toBe('error')
1818

19-
expectValidationErrorCount(output, 35, 1)
19+
expectValidationErrorCount(output, 34, 1)
2020

2121
expectValidationErrors(output, '/', [
2222
['"', ValidationErrorType.Quotes, 'quote', ['“']],
23-
['\'', ValidationErrorType.Quotes, 'quote', ['‘']],
24-
['\'', ValidationErrorType.Quotes, 'quote', ['’']],
25-
['\'', ValidationErrorType.Quotes, 'apostrophe', ['’']],
23+
["'", ValidationErrorType.Quotes, 'quote', ['‘']],
24+
["'", ValidationErrorType.Quotes, 'quote', ['’']],
25+
["'", ValidationErrorType.Quotes, 'apostrophe', ['’']],
2626
['"', ValidationErrorType.Quotes, 'quote', ['”']],
27-
['\'', ValidationErrorType.Quotes, 'quote', ['“']],
27+
["'", ValidationErrorType.Quotes, 'quote', ['“']],
2828
['"', ValidationErrorType.Quotes, 'quote', ['‘']],
2929
['"', ValidationErrorType.Quotes, 'quote', ['’']],
3030
['"', ValidationErrorType.Quotes, 'quote', ['‘']],
31-
['\'', ValidationErrorType.Quotes, 'quote', ['“']],
31+
["'", ValidationErrorType.Quotes, 'quote', ['“']],
3232
['‘', ValidationErrorType.Quotes, 'quote', ['“']],
3333
['“', ValidationErrorType.Quotes, 'quote', ['‘']],
3434
['”', ValidationErrorType.Quotes, 'quote', ['’']],
35-
['”', ValidationErrorType.Quotes, 'quote', ['’']],
3635
['’', ValidationErrorType.Quotes, 'quote', ['“']],
3736
['‘', ValidationErrorType.Quotes, 'quote', ['“']],
3837
['“', ValidationErrorType.Quotes, 'quote', ['‘']],
3938
['"', ValidationErrorType.Quotes, 'quote', ['“']],
40-
['\'', ValidationErrorType.Quotes, 'quote', ['‘']],
39+
["'", ValidationErrorType.Quotes, 'quote', ['‘']],
4140
['"', ValidationErrorType.Quotes, 'quote', ['“']],
4241
['"', ValidationErrorType.Quotes, 'quote', ['”']],
43-
['\'', ValidationErrorType.Quotes, 'quote', ['’']],
42+
["'", ValidationErrorType.Quotes, 'quote', ['’']],
4443
['"', ValidationErrorType.Quotes, 'quote', ['”']],
45-
['\'', ValidationErrorType.Quotes, 'quote', ['“']],
44+
["'", ValidationErrorType.Quotes, 'quote', ['“']],
4645
['"', ValidationErrorType.Quotes, 'quote', ['‘']],
47-
['\'', ValidationErrorType.Quotes, 'quote', ['“']],
48-
['\'', ValidationErrorType.Quotes, 'quote', ['”']],
46+
["'", ValidationErrorType.Quotes, 'quote', ['“']],
47+
["'", ValidationErrorType.Quotes, 'quote', ['”']],
4948
['"', ValidationErrorType.Quotes, 'quote', ['’']],
50-
['\'', ValidationErrorType.Quotes, 'quote', ['”']],
49+
["'", ValidationErrorType.Quotes, 'quote', ['”']],
5150
['‘', ValidationErrorType.Quotes, 'quote', ['“']],
5251
['“', ValidationErrorType.Quotes, 'quote', ['‘']],
5352
['‘', ValidationErrorType.Quotes, 'quote', ['“']],

packages/starlight-spell-checker/tests/quotes.throwError.test.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ test('does not build with quotes throw error invalid English content', async ()
1616

1717
expect(status).toBe('error')
1818

19-
expectValidationErrorCount(output, 35, 1)
19+
expectValidationErrorCount(output, 34, 1)
2020

2121
expectValidationErrors(output, '/', [
2222
['"', ValidationErrorType.Quotes, 'quote', ['“']],
@@ -32,7 +32,6 @@ test('does not build with quotes throw error invalid English content', async ()
3232
['‘', ValidationErrorType.Quotes, 'quote', ['“']],
3333
['“', ValidationErrorType.Quotes, 'quote', ['‘']],
3434
['”', ValidationErrorType.Quotes, 'quote', ['’']],
35-
['”', ValidationErrorType.Quotes, 'quote', ['’']],
3635
['’', ValidationErrorType.Quotes, 'quote', ['“']],
3736
['‘', ValidationErrorType.Quotes, 'quote', ['“']],
3837
['“', ValidationErrorType.Quotes, 'quote', ['‘']],

0 commit comments

Comments
 (0)