Skip to content

Commit 104e75c

Browse files
feat: switch from sentences-per-line to markdownlint-sentences-per-line (#2284)
## PR Checklist - [x] Addresses an existing open issue: fixes #2283 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md) were taken ## Overview Direct package rename from `sentences-to-line` to `markdownlint-sentences-per-line`. As noted in #2283, this is a partial step along the way to streamlining this repo's Markdown linting. 🎁
1 parent 8d3967b commit 104e75c

File tree

4 files changed

+31
-22
lines changed

4 files changed

+31
-22
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"format": "prettier .",
2727
"lint": "eslint . --max-warnings 0",
2828
"lint:knip": "knip",
29-
"lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\" --rules sentences-per-line",
29+
"lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\" --rules markdownlint-sentences-per-line",
3030
"lint:packages": "pnpm dedupe --check",
3131
"lint:spelling": "cspell \"**\" \".github/**/*\"",
3232
"prepare": "husky",
@@ -107,12 +107,12 @@
107107
"lodash": "4.17.21",
108108
"markdownlint": "0.38.0",
109109
"markdownlint-cli": "0.45.0",
110+
"markdownlint-sentences-per-line": "0.1.1",
110111
"prettier": "3.6.1",
111112
"prettier-plugin-curly": "0.3.2",
112113
"prettier-plugin-packagejson": "2.5.15",
113114
"prettier-plugin-sh": "0.17.4",
114115
"release-it": "19.0.3",
115-
"sentences-per-line": "0.3.0",
116116
"tsdown": "0.12.7",
117117
"typescript": "5.8.3",
118118
"typescript-eslint": "8.35.0",

pnpm-lock.yaml

Lines changed: 21 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/blocks/blockMarkdownlint.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ describe("blockMarkdownlint", () => {
4848
"devDependencies": {
4949
"markdownlint": "0.38.0",
5050
"markdownlint-cli": "0.45.0",
51-
"sentences-per-line": "0.3.0",
51+
"markdownlint-sentences-per-line": "0.1.1",
5252
},
5353
"scripts": {
54-
"lint:md": "markdownlint "**/*.md" ".github/**/*.md" --rules sentences-per-line",
54+
"lint:md": "markdownlint "**/*.md" ".github/**/*.md" --rules markdownlint-sentences-per-line",
5555
},
5656
},
5757
},
@@ -129,10 +129,10 @@ describe("blockMarkdownlint", () => {
129129
"devDependencies": {
130130
"markdownlint": "0.38.0",
131131
"markdownlint-cli": "0.45.0",
132-
"sentences-per-line": "0.3.0",
132+
"markdownlint-sentences-per-line": "0.1.1",
133133
},
134134
"scripts": {
135-
"lint:md": "markdownlint "**/*.md" ".github/**/*.md" --rules sentences-per-line",
135+
"lint:md": "markdownlint "**/*.md" ".github/**/*.md" --rules markdownlint-sentences-per-line",
136136
},
137137
},
138138
},
@@ -209,10 +209,10 @@ describe("blockMarkdownlint", () => {
209209
"devDependencies": {
210210
"markdownlint": "0.38.0",
211211
"markdownlint-cli": "0.45.0",
212-
"sentences-per-line": "0.3.0",
212+
"markdownlint-sentences-per-line": "0.1.1",
213213
},
214214
"scripts": {
215-
"lint:md": "markdownlint "**/*.md" ".github/**/*.md" --rules sentences-per-line",
215+
"lint:md": "markdownlint "**/*.md" ".github/**/*.md" --rules markdownlint-sentences-per-line",
216216
},
217217
},
218218
},

src/blocks/blockMarkdownlint.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ export const blockMarkdownlint = base.createBlock({
5858
devDependencies: getPackageDependencies(
5959
"markdownlint",
6060
"markdownlint-cli",
61-
"sentences-per-line",
61+
"markdownlint-sentences-per-line",
6262
),
6363
scripts: {
6464
"lint:md":
65-
'markdownlint "**/*.md" ".github/**/*.md" --rules sentences-per-line',
65+
'markdownlint "**/*.md" ".github/**/*.md" --rules markdownlint-sentences-per-line',
6666
},
6767
},
6868
}),

0 commit comments

Comments
 (0)