mirror of
				https://github.com/theoludwig/markdownlint-rule-relative-links.git
				synced 2025-11-01 00:49:07 +01:00 
			
		
		
		
	feat: usage of ESM modules imports (instead of CommonJS)
Fixes #10 BREAKING CHANGE: This package is now pure ESM BREAKING CHANGE: minimum supported Node.js >= 22.0.0
This commit is contained in:
		@@ -1,9 +1,9 @@
 | 
			
		||||
const { test } = require("node:test")
 | 
			
		||||
const assert = require("node:assert/strict")
 | 
			
		||||
import { test } from "node:test"
 | 
			
		||||
import assert from "node:assert/strict"
 | 
			
		||||
 | 
			
		||||
const { markdownlint } = require("markdownlint").promises
 | 
			
		||||
import * as markdownlint from "markdownlint/promise"
 | 
			
		||||
 | 
			
		||||
const relativeLinksRule = require("../src/index.js")
 | 
			
		||||
import relativeLinksRule from "../src/index.js"
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 *
 | 
			
		||||
@@ -11,7 +11,7 @@ const relativeLinksRule = require("../src/index.js")
 | 
			
		||||
 * @returns
 | 
			
		||||
 */
 | 
			
		||||
const validateMarkdownLint = async (fixtureFile) => {
 | 
			
		||||
  const lintResults = await markdownlint({
 | 
			
		||||
  const lintResults = await markdownlint.lint({
 | 
			
		||||
    files: [fixtureFile],
 | 
			
		||||
    config: {
 | 
			
		||||
      default: false,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user