Skip to content

Commit 7ddedcd

Browse files
fix lint issues
1 parent ef484b4 commit 7ddedcd

3 files changed

Lines changed: 9 additions & 13 deletions

File tree

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
"lint:fix": "oxlint --type-aware --fix",
1616
"lint:ci": "oxlint --type-aware --deny-warnings",
1717
"format": "oxfmt && prettier --write \"**/*.astro\"",
18-
"format:check": "oxfmt --check && prettier --check \"**/*.astro\""
18+
"format:check": "oxfmt --check && prettier --check \"**/*.astro\"",
19+
"check": "npm run format:check && npm run lint:ci && npm run sherif && npm run typecheck && npm run build",
20+
"fix": "npm run format && npm run lint:fix"
1921
},
2022
"devDependencies": {
2123
"@changesets/cli": "^2.29.8",

remark-capitalize-titles/package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@
4141
"test": "vitest",
4242
"typecheck": "tsc --noEmit"
4343
},
44-
"keywords": [
45-
"remark"
46-
],
4744
"dependencies": {
4845
"title": "^4.0.1",
4946
"unist-util-visit": "^5.0.0"
@@ -57,8 +54,5 @@
5754
"typescript": "^5.5.2",
5855
"unified": "^11.0.4",
5956
"vitest": "^3.0.5"
60-
},
61-
"publishConfig": {
62-
"access": "public"
6357
}
6458
}

remark-capitalize-titles/tests/index.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ describe("Handles inline code spans", () => {
102102
});
103103

104104
test("handles multiple inline code spans with separators", async () => {
105-
expect(
106-
await processMarkdown("## git & github's `push`/`pull` dance"),
107-
).toBe("## Git & GitHub's `push`/`pull` Dance");
105+
expect(await processMarkdown("## git & github's `push`/`pull` dance")).toBe(
106+
"## Git & GitHub's `push`/`pull` Dance",
107+
);
108108
});
109109

110110
test("handles punctuation immediately following an inline code span", async () => {
@@ -132,9 +132,9 @@ describe("Handles hyphenated compound words", () => {
132132
});
133133

134134
test("handles hyphenated words alongside a slash separator", async () => {
135-
expect(
136-
await processMarkdown("## push/pull: git's memory-sync dance"),
137-
).toBe("## Push/pull: Git's Memory-sync Dance");
135+
expect(await processMarkdown("## push/pull: git's memory-sync dance")).toBe(
136+
"## Push/pull: Git's Memory-sync Dance",
137+
);
138138
});
139139

140140
test("handles common hyphenated prefixes", async () => {

0 commit comments

Comments
 (0)