mirror of
https://github.com/theoludwig/markdownlint-rule-relative-links.git
synced 2026-10-16 20:50:51 +02:00
Compare commits
5
Commits
1385c4bd80
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4de09bfdc0
|
||
|
|
193e66bc14
|
||
|
|
86308ce34c
|
||
|
|
be2c1746c2
|
||
|
|
21fbd5f963
|
No files matched your search
@@ -10,10 +10,10 @@ jobs:
|
||||
lint:
|
||||
runs-on: "ubuntu-latest"
|
||||
steps:
|
||||
- uses: "actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10" # v6.0.3
|
||||
- uses: "actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1" # v7.0.1
|
||||
|
||||
- name: "Setup Node.js"
|
||||
uses: "actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e" # v6.4.0
|
||||
uses: "actions/setup-node@820762786026740c76f36085b0efc47a31fe5020" # v7.0.0
|
||||
with:
|
||||
node-version: "lts/*"
|
||||
cache: "npm"
|
||||
|
||||
@@ -17,13 +17,13 @@ jobs:
|
||||
pull-requests: "write"
|
||||
id-token: "write"
|
||||
steps:
|
||||
- uses: "actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10" # v6.0.3
|
||||
- uses: "actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1" # v7.0.1
|
||||
with:
|
||||
fetch-depth: 0
|
||||
persist-credentials: false
|
||||
|
||||
- name: "Setup Node.js"
|
||||
uses: "actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e" # v6.4.0
|
||||
uses: "actions/setup-node@820762786026740c76f36085b0efc47a31fe5020" # v7.0.0
|
||||
with:
|
||||
node-version: "lts/*"
|
||||
cache: "npm"
|
||||
|
||||
@@ -17,10 +17,10 @@ jobs:
|
||||
- "macos-latest"
|
||||
runs-on: "${{ matrix.runs-on }}"
|
||||
steps:
|
||||
- uses: "actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10" # v6.0.3
|
||||
- uses: "actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1" # v7.0.1
|
||||
|
||||
- name: "Setup Node.js"
|
||||
uses: "actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e" # v6.4.0
|
||||
uses: "actions/setup-node@820762786026740c76f36085b0efc47a31fe5020" # v7.0.0
|
||||
with:
|
||||
node-version: "lts/*"
|
||||
cache: "npm"
|
||||
|
||||
@@ -6,5 +6,8 @@
|
||||
"browser": true,
|
||||
"node": true,
|
||||
"shared-node-browser": true
|
||||
},
|
||||
"rules": {
|
||||
"unicorn/prefer-number-coercion": "off"
|
||||
}
|
||||
}
|
||||
Generated
+1130
-517
File diff suppressed because it is too large.
Load diff
+10
-11
@@ -36,20 +36,19 @@
|
||||
"release": "semantic-release"
|
||||
},
|
||||
"dependencies": {
|
||||
"markdown-it": "14.2.0",
|
||||
"mime": "4.1.0"
|
||||
"markdown-it": "15.0.3",
|
||||
"mime": "4.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/markdown-it": "14.1.2",
|
||||
"@types/node": "25.9.2",
|
||||
"@types/node": "26.6.5",
|
||||
"eslint-config-conventions": "21.4.0",
|
||||
"markdownlint": "0.40.0",
|
||||
"markdownlint-cli2": "0.22.1",
|
||||
"oxfmt": "0.54.0",
|
||||
"oxlint": "1.69.0",
|
||||
"oxlint-tsgolint": "0.23.0",
|
||||
"semantic-release": "25.0.3",
|
||||
"typescript": "6.0.3"
|
||||
"markdownlint": "0.42.0",
|
||||
"markdownlint-cli2": "0.23.3",
|
||||
"oxfmt": "0.73.0",
|
||||
"oxlint": "1.88.0",
|
||||
"oxlint-tsgolint": "7.0.2004",
|
||||
"semantic-release": "25.0.9",
|
||||
"typescript": "7.0.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=22.0.0"
|
||||
|
||||
Vendored
+1
-1
@@ -1,4 +1,4 @@
|
||||
import type MarkdownIt from "markdown-it"
|
||||
import type { MarkdownIt } from "markdown-it"
|
||||
import type { Rule } from "markdownlint"
|
||||
|
||||
declare const relativeLinksRule: Rule
|
||||
|
||||
+2
-1
@@ -29,7 +29,8 @@ const relativeLinksRule = {
|
||||
filterTokens(params, "inline", (token) => {
|
||||
const children = token.children ?? []
|
||||
for (const child of children) {
|
||||
const { type, attrs, lineNumber } = child
|
||||
const { type, lineNumber } = child
|
||||
const attrs = child.attrs ?? []
|
||||
|
||||
/** @type {string | undefined} */
|
||||
let hrefSrc
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@
|
||||
"allowJs": true,
|
||||
"noEmit": true,
|
||||
"rootDir": ".",
|
||||
"skipLibCheck": true,
|
||||
"skipLibCheck": false,
|
||||
"strict": true,
|
||||
"allowUnusedLabels": false,
|
||||
"allowUnreachableCode": false,
|
||||
|
||||
Reference in new issue
Block a user