Skip to content

Commit 96f0c78

Browse files
committed
chore: use JounQin/eslint-plugin-markdown#feat/bump temporarily
1 parent 23da599 commit 96f0c78

File tree

3 files changed

+15
-75
lines changed

3 files changed

+15
-75
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"@types/mdast": "^4.0.3",
5050
"acorn": "^8.11.2",
5151
"cliui": "npm:@isaacs/cliui@^8.0.2",
52+
"eslint-plugin-markdown": "JounQin/eslint-plugin-markdown#feat/bump",
5253
"mdast-util-frontmatter": "^2.0.1",
5354
"mdast-util-gfm": "^3.0.0",
5455
"prettier": "^2.8.8",

packages/eslint-mdx/src/worker.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ runAsWorker(
375375
processed.add(child)
376376

377377
if (child.data && 'estree' in child.data && child.data.estree) {
378-
const estree = child.data.estree as Program
378+
const { estree } = child.data
379379

380380
assert(estree.body.length <= 1)
381381

@@ -641,7 +641,9 @@ runAsWorker(
641641
})
642642
}
643643

644-
const estree = (node.data?.estree || {
644+
const estree = ((node.data &&
645+
'estree' in node.data &&
646+
node.data.estree) || {
645647
body: [],
646648
comments: [],
647649
}) as Program

yarn.lock

+10-73
Original file line numberDiff line numberDiff line change
@@ -3111,16 +3111,16 @@
31113111
resolved "https://registry.yarnpkg.com/@types/supports-color/-/supports-color-8.1.3.tgz#b769cdce1d1bb1a3fa794e35b62c62acdf93c139"
31123112
integrity sha512-Hy6UMpxhE3j1tLpl27exp1XqHD7n8chAiNPzWfz16LPZoMMoSc4dzLl6w9qijkEb/r5O1ozdu1CWGA2L83ZeZg==
31133113

3114-
"@types/unist@*", "@types/unist@^2", "@types/unist@^2.0.0", "@types/unist@^2.0.2":
3115-
version "2.0.10"
3116-
resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.10.tgz#04ffa7f406ab628f7f7e97ca23e290cd8ab15efc"
3117-
integrity sha512-IfYcSBWE3hLpBg8+X2SEa8LVkJdJEkT2Ese2aaLs3ptGdVtABxndrMaxuFlQ1qdFf9Q5rDvDpxI3WwgvKFAsQA==
3118-
3119-
"@types/unist@^3.0.0", "@types/unist@^3.0.2":
3114+
"@types/unist@*", "@types/unist@^3.0.0", "@types/unist@^3.0.2":
31203115
version "3.0.2"
31213116
resolved "https://registry.yarnpkg.com/@types/unist/-/unist-3.0.2.tgz#6dd61e43ef60b34086287f83683a5c1b2dc53d20"
31223117
integrity sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ==
31233118

3119+
"@types/unist@^2", "@types/unist@^2.0.0":
3120+
version "2.0.10"
3121+
resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.10.tgz#04ffa7f406ab628f7f7e97ca23e290cd8ab15efc"
3122+
integrity sha512-IfYcSBWE3hLpBg8+X2SEa8LVkJdJEkT2Ese2aaLs3ptGdVtABxndrMaxuFlQ1qdFf9Q5rDvDpxI3WwgvKFAsQA==
3123+
31243124
"@types/uuid@^9.0.7":
31253125
version "9.0.7"
31263126
resolved "https://registry.yarnpkg.com/@types/uuid/-/uuid-9.0.7.tgz#b14cebc75455eeeb160d5fe23c2fcc0c64f724d8"
@@ -3989,21 +3989,11 @@ character-entities-html4@^2.0.0:
39893989
resolved "https://registry.yarnpkg.com/character-entities-html4/-/character-entities-html4-2.1.0.tgz#1f1adb940c971a4b22ba39ddca6b618dc6e56b2b"
39903990
integrity sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==
39913991

3992-
character-entities-legacy@^1.0.0:
3993-
version "1.1.4"
3994-
resolved "https://registry.yarnpkg.com/character-entities-legacy/-/character-entities-legacy-1.1.4.tgz#94bc1845dce70a5bb9d2ecc748725661293d8fc1"
3995-
integrity sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA==
3996-
39973992
character-entities-legacy@^3.0.0:
39983993
version "3.0.0"
39993994
resolved "https://registry.yarnpkg.com/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz#76bc83a90738901d7bc223a9e93759fdd560125b"
40003995
integrity sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==
40013996

4002-
character-entities@^1.0.0:
4003-
version "1.2.4"
4004-
resolved "https://registry.yarnpkg.com/character-entities/-/character-entities-1.2.4.tgz#e12c3939b7eaf4e5b15e7ad4c5e28e1d48c5b16b"
4005-
integrity sha512-iBMyeEHxfVnIakwOuDXpVkc54HijNgCyQB2w0VfGQThle6NXn50zU6V/u+LDhxHcDUPojn6Kpga3PTAD8W1bQw==
4006-
40073997
character-entities@^2.0.0:
40083998
version "2.0.2"
40093999
resolved "https://registry.yarnpkg.com/character-entities/-/character-entities-2.0.2.tgz#2d09c2e72cd9523076ccb21157dff66ad43fcc22"
@@ -4016,11 +4006,6 @@ character-parser@^2.2.0:
40164006
dependencies:
40174007
is-regex "^1.0.3"
40184008

4019-
character-reference-invalid@^1.0.0:
4020-
version "1.1.4"
4021-
resolved "https://registry.yarnpkg.com/character-reference-invalid/-/character-reference-invalid-1.1.4.tgz#083329cda0eae272ab3dbbf37e9a382c13af1560"
4022-
integrity sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg==
4023-
40244009
character-reference-invalid@^2.0.0:
40254010
version "2.0.1"
40264011
resolved "https://registry.yarnpkg.com/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz#85c66b041e43b47210faf401278abf808ac45cb9"
@@ -5035,12 +5020,12 @@ eslint-plugin-jsonc@^2.9.0:
50355020
jsonc-eslint-parser "^2.0.4"
50365021
natural-compare "^1.4.0"
50375022

5038-
eslint-plugin-markdown@^3.0.1:
5023+
eslint-plugin-markdown@JounQin/eslint-plugin-markdown#feat/bump, eslint-plugin-markdown@^3.0.1:
50395024
version "3.0.1"
5040-
resolved "https://registry.yarnpkg.com/eslint-plugin-markdown/-/eslint-plugin-markdown-3.0.1.tgz#fc6765bdb5f82a75e2438d7fac619602f2abc38c"
5041-
integrity sha512-8rqoc148DWdGdmYF6WSQFT3uQ6PO7zXYgeBpHAOAakX/zpq+NvFYbDA/H7PYzHajwtmaOzAwfxyl++x0g1/N9A==
5025+
resolved "https://codeload.github.com/JounQin/eslint-plugin-markdown/tar.gz/cdaeeb2f7737641363c429167d140b38e3234240"
50425026
dependencies:
5043-
mdast-util-from-markdown "^0.8.5"
5027+
mdast-util-from-markdown "^2.0.0"
5028+
synckit "^0.8.5"
50445029

50455030
eslint-plugin-markup@^0.11.0:
50465031
version "0.11.0"
@@ -6357,11 +6342,6 @@ is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1:
63576342
dependencies:
63586343
is-extglob "^2.1.1"
63596344

6360-
is-hexadecimal@^1.0.0:
6361-
version "1.0.4"
6362-
resolved "https://registry.yarnpkg.com/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz#cc35c97588da4bd49a8eedd6bc4082d44dcb23a7"
6363-
integrity sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==
6364-
63656345
is-hexadecimal@^2.0.0:
63666346
version "2.0.1"
63676347
resolved "https://registry.yarnpkg.com/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz#86b5bf668fca307498d319dfc03289d781a90027"
@@ -7607,17 +7587,6 @@ mdast-util-find-and-replace@^3.0.0:
76077587
unist-util-is "^6.0.0"
76087588
unist-util-visit-parents "^6.0.0"
76097589

7610-
mdast-util-from-markdown@^0.8.5:
7611-
version "0.8.5"
7612-
resolved "https://registry.yarnpkg.com/mdast-util-from-markdown/-/mdast-util-from-markdown-0.8.5.tgz#d1ef2ca42bc377ecb0463a987910dae89bd9a28c"
7613-
integrity sha512-2hkTXtYYnr+NubD/g6KGBS/0mFmBcifAsI0yIWRiRo0PjVs6SSOSOdtzbp6kSGnShDN6G5aWZpKQ2lWRy27mWQ==
7614-
dependencies:
7615-
"@types/mdast" "^3.0.0"
7616-
mdast-util-to-string "^2.0.0"
7617-
micromark "~2.11.0"
7618-
parse-entities "^2.0.0"
7619-
unist-util-stringify-position "^2.0.0"
7620-
76217590
mdast-util-from-markdown@^1.0.0:
76227591
version "1.3.1"
76237592
resolved "https://registry.yarnpkg.com/mdast-util-from-markdown/-/mdast-util-from-markdown-1.3.1.tgz#9421a5a247f10d31d2faed2a30df5ec89ceafcf0"
@@ -7847,11 +7816,6 @@ mdast-util-to-markdown@^2.0.0:
78477816
unist-util-visit "^5.0.0"
78487817
zwitch "^2.0.0"
78497818

7850-
mdast-util-to-string@^2.0.0:
7851-
version "2.0.0"
7852-
resolved "https://registry.yarnpkg.com/mdast-util-to-string/-/mdast-util-to-string-2.0.0.tgz#b8cfe6a713e1091cb5b728fc48885a4767f8b97b"
7853-
integrity sha512-AW4DRS3QbBayY/jJmD8437V1Gombjf8RSOUCMFBuo5iHi58AGEgVCKQ+ezHkZZDpAQS75hcBMpLqjpJTjtUL7w==
7854-
78557819
mdast-util-to-string@^3.0.0, mdast-util-to-string@^3.1.0, mdast-util-to-string@^3.2.0:
78567820
version "3.2.0"
78577821
resolved "https://registry.yarnpkg.com/mdast-util-to-string/-/mdast-util-to-string-3.2.0.tgz#66f7bb6324756741c5f47a53557f0cbf16b6f789"
@@ -8542,14 +8506,6 @@ micromark@^4.0.0:
85428506
micromark-util-symbol "^2.0.0"
85438507
micromark-util-types "^2.0.0"
85448508

8545-
micromark@~2.11.0:
8546-
version "2.11.4"
8547-
resolved "https://registry.yarnpkg.com/micromark/-/micromark-2.11.4.tgz#d13436138eea826383e822449c9a5c50ee44665a"
8548-
integrity sha512-+WoovN/ppKolQOFIAajxi7Lu9kInbPxFuTBVEavFcL8eAfVstoc5MocPmqBeAdBOJV00uaVjegzH4+MA0DN/uA==
8549-
dependencies:
8550-
debug "^4.0.0"
8551-
parse-entities "^2.0.0"
8552-
85538509
[email protected], micromatch@^4.0.2, micromatch@^4.0.4, micromatch@^4.0.5:
85548510
version "4.0.5"
85558511
resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6"
@@ -9012,18 +8968,6 @@ parent-module@^1.0.0:
90128968
dependencies:
90138969
callsites "^3.0.0"
90148970

9015-
parse-entities@^2.0.0:
9016-
version "2.0.0"
9017-
resolved "https://registry.yarnpkg.com/parse-entities/-/parse-entities-2.0.0.tgz#53c6eb5b9314a1f4ec99fa0fdf7ce01ecda0cbe8"
9018-
integrity sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ==
9019-
dependencies:
9020-
character-entities "^1.0.0"
9021-
character-entities-legacy "^1.0.0"
9022-
character-reference-invalid "^1.0.0"
9023-
is-alphanumerical "^1.0.0"
9024-
is-decimal "^1.0.0"
9025-
is-hexadecimal "^1.0.0"
9026-
90278971
parse-entities@^4.0.0:
90288972
version "4.0.1"
90298973
resolved "https://registry.yarnpkg.com/parse-entities/-/parse-entities-4.0.1.tgz#4e2a01111fb1c986549b944af39eeda258fc9e4e"
@@ -11628,13 +11572,6 @@ unist-util-remove-position@^5.0.0:
1162811572
"@types/unist" "^3.0.0"
1162911573
unist-util-visit "^5.0.0"
1163011574

11631-
unist-util-stringify-position@^2.0.0:
11632-
version "2.0.3"
11633-
resolved "https://registry.yarnpkg.com/unist-util-stringify-position/-/unist-util-stringify-position-2.0.3.tgz#cce3bfa1cdf85ba7375d1d5b17bdc4cada9bd9da"
11634-
integrity sha512-3faScn5I+hy9VleOq/qNbAd6pAx7iH5jYBMS9I1HgQVijz/4mv5Bvw5iw1sC/90CODiKo81G/ps8AJrISn687g==
11635-
dependencies:
11636-
"@types/unist" "^2.0.2"
11637-
1163811575
unist-util-stringify-position@^3.0.0:
1163911576
version "3.0.3"
1164011577
resolved "https://registry.yarnpkg.com/unist-util-stringify-position/-/unist-util-stringify-position-3.0.3.tgz#03ad3348210c2d930772d64b489580c13a7db39d"

0 commit comments

Comments
 (0)