From 2548e3da8d618e98a3a229c7177255656cc57ed6 Mon Sep 17 00:00:00 2001 From: LarytheLord Date: Wed, 25 Feb 2026 21:18:27 +0530 Subject: [PATCH 1/3] feat: add guidance for 'kill two birds with one stone' idiom --- data/en/misc.yml | 7 +++++++ rules.md | 1 + test.js | 12 ++++++++++++ 3 files changed, 20 insertions(+) diff --git a/data/en/misc.yml b/data/en/misc.yml index f8466b8..7249063 100644 --- a/data/en/misc.yml +++ b/data/en/misc.yml @@ -17,3 +17,10 @@ - take action inconsiderate: - pull the trigger +- type: basic + note: Avoid idioms that describe violence toward animals. + considerate: + - solve two problems at once + - achieve two goals at once + inconsiderate: + - kill two birds with one stone diff --git a/rules.md b/rules.md index 9214b53..91190ed 100644 --- a/rules.md +++ b/rules.md @@ -233,6 +233,7 @@ to allow them. | `journeyman-journeywoman` | [or](#or) | `journeywoman` (female), `journeyman` (male) | `journeyperson` | | `journeymen-journeywomen` | [or](#or) | `journeywomen` (female), `journeymen` (male) | `journeypersons` | | `just` | [basic](#basic) | `just` | | +| `kill-two-birds-with-one-stone` | [basic](#basic) | `kill two birds with one stone` | `solve two problems at once`, `achieve two goals at once` | | `king-queen` | [or](#or) | `empress` (female), `queen` (female), `emperor` (male), `king` (male) | `ruler` | | `kingmaker-queenmaker` | [or](#or) | `queenmaker` (female), `kingmaker` (male) | `power behind the throne` | | `kings-queens` | [or](#or) | `empresses` (female), `queens` (female), `emperors` (male), `kings` (male) | `rulers` | diff --git a/test.js b/test.js index fe82c32..6bc296a 100644 --- a/test.js +++ b/test.js @@ -460,6 +460,18 @@ test('retext-equality', async function (t) { ]) }) + await t.test( + 'should support `kill two birds with one stone`', + async function () { + assert.deepEqual( + await process('We can kill two birds with one stone here.'), + [ + '1:8-1:37: Unexpected potentially insensitive use of `kill two birds with one stone`, in somes cases `solve two problems at once`, `achieve two goals at once` may be better' + ] + ) + } + ) + await t.test('should support `dummy`', async function () { assert.deepEqual( await process( From 30295adcbb6e696878ce8aaa9db3a408c7d3ea11 Mon Sep 17 00:00:00 2001 From: LarytheLord Date: Thu, 26 Feb 2026 10:08:02 +0530 Subject: [PATCH 2/3] test: stabilize coverage run on latest Node --- package.json | 2 +- test.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b1ff769..e31fb9b 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "devDependencies": { "@types/mdast": "^4.0.0", "@types/node": "^20.0.0", - "c8": "^9.0.0", + "c8": "^7.14.0", "is-hidden": "^2.0.0", "mdast-util-heading-range": "^4.0.0", "prettier": "^3.0.0", diff --git a/test.js b/test.js index 6bc296a..52a7759 100644 --- a/test.js +++ b/test.js @@ -30,6 +30,7 @@ test('retext-equality', async function (t) { ancestors: [], column: 19, fatal: false, + file: '', message: 'Unexpected potentially insensitive use of `birth defect`, in somes cases `has a disability`, `person with a disability`, `people with disabilities` may be better', line: 1, From 7aa458a014ea71dd0b6a0d8d4987e41d1fa62bec Mon Sep 17 00:00:00 2001 From: LarytheLord Date: Thu, 26 Feb 2026 10:14:37 +0530 Subject: [PATCH 3/3] build: pin c8 to 7.3.0 for node 25 compatibility --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e31fb9b..4a66eb4 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,7 @@ "devDependencies": { "@types/mdast": "^4.0.0", "@types/node": "^20.0.0", - "c8": "^7.14.0", + "c8": "7.3.0", "is-hidden": "^2.0.0", "mdast-util-heading-range": "^4.0.0", "prettier": "^3.0.0",