Skip to content

Commit

Permalink
chore: fix builds for stricter tsc checks
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg authored Dec 13, 2024
2 parents 4e99926 + 6548ea7 commit 65b905f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/actions/prepare/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ runs:
- uses: actions/setup-node@v4
with:
cache: pnpm
node-version: "18"
node-version: "20"
- run: pnpm install --frozen-lockfile
shell: bash
using: composite
2 changes: 1 addition & 1 deletion knip.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"entry": ["src/index.ts!"],
"ignoreDependencies": ["sentences-per-line"],
"ignoreExportsUsedInFile": { "interface": true, "type": true },
"project": ["src/**/*.ts!"]
"project": ["src/**/*.ts!"],
}
6 changes: 3 additions & 3 deletions src/sentences-per-line.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import markdownlint from "markdownlint";
import * as markdownlint from "markdownlint/sync";
import { describe, expect, test } from "vitest";

import { sentencesPerLine } from "./sentences-per-line.js";
Expand Down Expand Up @@ -47,7 +47,7 @@ Abc. Def.
6,
],
])("%s", (input, errorContext, lineNumber = 1) => {
const actual = markdownlint.sync({
const actual = markdownlint.lint({
config: {
default: false,
"sentences-per-line": true,
Expand All @@ -69,7 +69,7 @@ Abc. Def.
ruleInformation: null,
ruleNames: ["sentences-per-line"],
},
]
]
: [],
});
});
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"declaration": true,
"declarationMap": true,
"esModuleInterop": true,
"module": "CommonJS",
"moduleResolution": "Node10",
"module": "preserve",
"moduleResolution": "bundler",
"noEmit": true,
"outDir": "lib",
"resolveJsonModule": true,
Expand Down

0 comments on commit 65b905f

Please sign in to comment.