Skip to content

Commit f5622de

Browse files
committed
chore: drop eslint-plugin-markdown dep
related #477
1 parent 6615813 commit f5622de

File tree

16 files changed

+1512
-1824
lines changed

16 files changed

+1512
-1824
lines changed

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.yarn
2+
test/fixtures

.yarnrc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ nodeLinker: node-modules
33
plugins:
44
- checksum: 37b2361b1502b2054e6779788c0e9bdd6a90ce49852a8cad2feda79b0614ec94f06fb6e78951f5f95429c610d7934dd077caa47413a0227378a102c55161616d
55
path: .yarn/plugins/plugin-prepare-lifecycle.cjs
6-
spec: "https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js"
6+
spec: 'https://github.com/un-es/yarn-plugin-prepare-lifecycle/releases/download/v0.0.1/index.js'

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ See [#251](https://github.com/mdx-js/eslint-mdx/issues/251#issuecomment-73613922
9292
"mdx/code-blocks": true,
9393
// optional, if you want to disable language mapper, set it to `false`
9494
// if you want to override the default language mapper inside, you can provide your own
95-
"mdx/language-mapper": {}
96-
}
95+
"mdx/language-mapper": {},
96+
},
9797
}
9898
```
9999

@@ -214,9 +214,9 @@ If you want to disable or change severity of some related rules, it won't work b
214214
// disable following plugin
215215
[
216216
"lint-no-multiple-toplevel-headings",
217-
[0] // or false
218-
]
219-
]
217+
[0], // or false
218+
],
219+
],
220220
}
221221
```
222222

package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -30,43 +30,43 @@
3030
"@1stg/common-config": "^10.0.0",
3131
"@changesets/changelog-github": "^0.5.0",
3232
"@changesets/cli": "^2.27.1",
33-
"@commitlint/cli": "^18.4.4",
33+
"@commitlint/cli": "^18.6.1",
3434
"@pkgr/rollup": "^5.0.0",
3535
"@types/acorn": "^6.0.0",
3636
"@types/eslint": "^8.56.1",
37-
"@types/eslint-plugin-markdown": "^2.0.2",
3837
"@types/jest": "^29.5.11",
3938
"@types/node": "^20.10.6",
40-
"@types/react": "^18.2.46",
39+
"@types/react": "^18.2.61",
4140
"@types/unist": "^3.0.2",
4241
"concurrently": "^8.2.2",
4342
"cross-env": "^7.0.3",
4443
"eslint": "^8.56.0",
4544
"jest": "^30.0.0-alpha.2",
46-
"lint-staged": "^15.2.0",
45+
"lint-staged": "^15.2.1",
4746
"patch-package": "^8.0.0",
48-
"prettier": "^3.1.1",
47+
"prettier": "^3.5.3",
4948
"react": "^18.2.0",
5049
"rimraf": "^5.0.5",
5150
"simple-git-hooks": "^2.9.0",
52-
"ts-jest": "^29.1.1",
51+
"ts-jest": "^29.1.2",
5352
"ts-node": "^10.9.2",
5453
"type-coverage": "^2.27.1",
5554
"typescript": "^5.3.3"
5655
},
5756
"resolutions": {
5857
"@types/acorn": "^6.0.0",
5958
"@types/mdast": "^4.0.3",
59+
"@pkgr/utils": "^3.0.0",
6060
"acorn": "^8.11.3",
6161
"cliui": "npm:@isaacs/cliui@^8.0.2",
6262
"eslint-mdx": "link:packages/eslint-mdx",
63-
"eslint-plugin-markdown": "JounQin/eslint-plugin-markdown#feat/bump",
6463
"eslint-plugin-mdx": "link:packages/eslint-plugin-mdx",
6564
"mdast-util-frontmatter": "^2.0.1",
6665
"mdast-util-gfm": "^3.0.0",
6766
"unified": "^11.0.4",
6867
"unified-engine": "^11.2.0",
69-
"unist-util-visit": "^5.0.0"
68+
"unist-util-visit": "^5.0.0",
69+
"prettier": "^3.5.3"
7070
},
7171
"commitlint": {
7272
"extends": [

packages/eslint-mdx/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ See [#251](https://github.com/mdx-js/eslint-mdx/issues/251#issuecomment-73613922
9292
"mdx/code-blocks": true,
9393
// optional, if you want to disable language mapper, set it to `false`
9494
// if you want to override the default language mapper inside, you can provide your own
95-
"mdx/language-mapper": {}
96-
}
95+
"mdx/language-mapper": {},
96+
},
9797
}
9898
```
9999

@@ -214,9 +214,9 @@ If you want to disable or change severity of some related rules, it won't work b
214214
// disable following plugin
215215
[
216216
"lint-no-multiple-toplevel-headings",
217-
[0] // or false
218-
]
219-
]
217+
[0], // or false
218+
],
219+
],
220220
}
221221
```
222222

packages/eslint-plugin-mdx/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ See [#251](https://github.com/mdx-js/eslint-mdx/issues/251#issuecomment-73613922
9292
"mdx/code-blocks": true,
9393
// optional, if you want to disable language mapper, set it to `false`
9494
// if you want to override the default language mapper inside, you can provide your own
95-
"mdx/language-mapper": {}
96-
}
95+
"mdx/language-mapper": {},
96+
},
9797
}
9898
```
9999

@@ -214,9 +214,9 @@ If you want to disable or change severity of some related rules, it won't work b
214214
// disable following plugin
215215
[
216216
"lint-no-multiple-toplevel-headings",
217-
[0] // or false
218-
]
219-
]
217+
[0], // or false
218+
],
219+
],
220220
}
221221
```
222222

packages/eslint-plugin-mdx/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@
3232
},
3333
"dependencies": {
3434
"eslint-mdx": "^3.1.5",
35-
"eslint-plugin-markdown": "^3.0.1",
35+
"mdast-util-from-markdown": "^2.0.2",
3636
"remark-mdx": "^3.0.0",
3737
"remark-parse": "^11.0.0",
3838
"remark-stringify": "^11.0.0",
39+
"synckit": "^0.9.0",
3940
"tslib": "^2.6.2",
4041
"unified": "^11.0.4",
4142
"vfile": "^6.0.1"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import type { fromMarkdown as fromMarkdown_ } from 'mdast-util-from-markdown'
2+
import { createSyncFn } from 'synckit'
3+
4+
export const fromMarkdown = createSyncFn(
5+
require.resolve('./worker'),
6+
) as typeof fromMarkdown_

0 commit comments

Comments
 (0)