Skip to content

Commit 7c205d9

Browse files
committed
feat(rule): simplify in lieu of
1 parent ab31fb4 commit 7c205d9

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

Diff for: Prim/Simplifications.yml

+1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ swap:
1111
adversely impact: hurt
1212
approximately: about|around
1313
as a matter of fact: in fact
14+
in lieu of: instead of
1415
state-of-the-art: modern|latest

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "prim",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "A Vale-compatible prose style for non-native English speaker",
55
"type": "module",
66
"author": "Naiyer Asif (https://naiyerasif.com)",

Diff for: test/fixtures/Simplifications/test.md

+3
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,8 @@ The population of the city is approximately 1 million people.
1919
<!-- as a matter of fact -->
2020
As a matter of fact, I did call you yesterday—twice.
2121

22+
<!-- in lieu of -->
23+
She was granted severance pay in lieu of notice.
24+
2225
<!-- state-of-the-art -->
2326
This state-of-the-art arena can host 7,000 fans.

Diff for: test/snapshots/Simplifications.log

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ test.md:11:30:Prim.Simplifications:Use 'noon' instead of '12 pm'.
55
test.md:14:25:Prim.Simplifications:Use 'hurt' instead of 'adversely impact'.
66
test.md:17:31:Prim.Simplifications:Use 'about' or 'around' instead of 'approximately'.
77
test.md:20:1:Prim.Simplifications:Use 'in fact' instead of 'As a matter of fact'.
8-
test.md:23:6:Prim.Simplifications:Use 'modern' or 'latest' instead of 'state-of-the-art'.
8+
test.md:23:31:Prim.Simplifications:Use 'instead of' instead of 'in lieu of'.
9+
test.md:26:6:Prim.Simplifications:Use 'modern' or 'latest' instead of 'state-of-the-art'.

0 commit comments

Comments
 (0)