diff --git a/.github/actions/prepare/action.yml b/.github/actions/prepare/action.yml index c8d87aaf..cb825e62 100644 --- a/.github/actions/prepare/action.yml +++ b/.github/actions/prepare/action.yml @@ -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 diff --git a/knip.jsonc b/knip.jsonc index ca6ceda5..71f09088 100644 --- a/knip.jsonc +++ b/knip.jsonc @@ -3,5 +3,5 @@ "entry": ["src/index.ts!"], "ignoreDependencies": ["sentences-per-line"], "ignoreExportsUsedInFile": { "interface": true, "type": true }, - "project": ["src/**/*.ts!"] + "project": ["src/**/*.ts!"], } diff --git a/src/sentences-per-line.test.ts b/src/sentences-per-line.test.ts index 92697ec4..0c738850 100644 --- a/src/sentences-per-line.test.ts +++ b/src/sentences-per-line.test.ts @@ -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"; @@ -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, @@ -69,7 +69,7 @@ Abc. Def. ruleInformation: null, ruleNames: ["sentences-per-line"], }, - ] + ] : [], }); }); diff --git a/tsconfig.json b/tsconfig.json index d6bc00fe..4a2d4beb 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,8 +3,8 @@ "declaration": true, "declarationMap": true, "esModuleInterop": true, - "module": "CommonJS", - "moduleResolution": "Node10", + "module": "preserve", + "moduleResolution": "bundler", "noEmit": true, "outDir": "lib", "resolveJsonModule": true,