Skip to content

Commit 6e10289

Browse files
committed
chore: bump version, remove unnecessary dependency remark-stringify
1 parent 67ba91e commit 6e10289

File tree

4 files changed

+12
-73
lines changed

4 files changed

+12
-73
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
1818
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
1919

20-
> [ESLint] Parser/Plugin for [MDX] helps you lint all ES syntaxes excluding `code` block of course.
20+
> [ESLint] Parser/Plugin for [MDX], helps you lint all ES syntaxes excluding `code` block of course.
2121
> Work perfectly with `eslint-plugin-import`, `eslint-plugin-prettier` or any other eslint plugins.
2222
2323
## Install
@@ -93,7 +93,7 @@ npm i -D @rxts/eslint-plugin-mdx
9393

9494
### Why I need to use `overrides`?
9595

96-
This parser/plugin should only affects `.mdx` files, of course you manually config it on your own risk.
96+
This parser/plugin should only affects `.mdx` files, and `overrides` in `shared configuration` is still [not extendable](https://github.com/eslint/eslint/issues/12032) for now, of course you can manually config it on your own risk.
9797

9898
## Rules
9999

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rxts/eslint-plugin-mdx",
3-
"version": "0.5.0",
3+
"version": "0.6.0",
44
"description": "ESLint Parser/Plugin for MDX",
55
"repository": "[email protected]:rx-ts/eslint-plugin-mdx.git",
66
"author": "JounQin <[email protected]>",
@@ -31,15 +31,14 @@
3131
"dependencies": {
3232
"remark-mdx": "^1.1.4",
3333
"remark-parse": "^7.0.0",
34-
"remark-stringify": "^7.0.1",
3534
"unified": "^8.3.2"
3635
},
3736
"devDependencies": {
3837
"@commitlint/config-conventional": "^8.1.0",
3938
"@rxts/eslint-plugin-mdx": "file:config",
4039
"@types/eslint": "^4.16.6",
4140
"@types/jest": "^24.0.16",
42-
"@types/node": "^12.6.8",
41+
"@types/node": "^12.6.9",
4342
"@types/react": "^16.8.24",
4443
"@types/unist": "^2.0.3",
4544
"babel-eslint": "^10.0.2",

src/parser.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import { parse as esParse } from 'espree'
55
import remarkMdx from 'remark-mdx'
66
import remarkParse from 'remark-parse'
7-
import remarkStringify from 'remark-stringify'
87
import unified from 'unified'
98

109
import { normalizeJsxNode } from './normalizer'
@@ -22,7 +21,6 @@ export type EsNodeType = (typeof ES_NODE_TYPES)[number]
2221

2322
export const mdxProcessor = unified()
2423
.use<any>(remarkParse)
25-
.use<any>(remarkStringify)
2624
.use(remarkMdx)
2725
.freeze()
2826

yarn.lock

Lines changed: 8 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -582,11 +582,16 @@
582582
resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d"
583583
integrity sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==
584584

585-
"@types/node@*", "@types/node@^12.0.2", "@types/node@^12.6.8":
585+
"@types/node@*", "@types/node@^12.0.2":
586586
version "12.6.8"
587587
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.6.8.tgz#e469b4bf9d1c9832aee4907ba8a051494357c12c"
588588
integrity sha512-aX+gFgA5GHcDi89KG5keey2zf0WfZk/HAQotEamsK2kbey+8yGKcson0hbK8E+v0NArlCJQCqMP161YhV6ZXLg==
589589

590+
"@types/node@^12.6.9":
591+
version "12.6.9"
592+
resolved "https://registry.yarnpkg.com/@types/node/-/node-12.6.9.tgz#ffeee23afdc19ab16e979338e7b536fdebbbaeaf"
593+
integrity sha512-+YB9FtyxXGyD54p8rXwWaN1EWEyar5L58GlGWgtH2I9rGmLGBQcw63+0jw+ujqVavNuO47S1ByAjm9zdHMnskw==
594+
590595
"@types/normalize-package-data@^2.4.0":
591596
version "2.4.0"
592597
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e"
@@ -1131,11 +1136,6 @@ caseless@~0.12.0:
11311136
resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc"
11321137
integrity sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=
11331138

1134-
ccount@^1.0.0:
1135-
version "1.0.4"
1136-
resolved "https://registry.yarnpkg.com/ccount/-/ccount-1.0.4.tgz#9cf2de494ca84060a2a8d2854edd6dfb0445f386"
1137-
integrity sha512-fpZ81yYfzentuieinmGnphk0pLkOTMm6MZdVqwd77ROvhko6iujLNGrHH5E7utq3ygWklwfmwuG+A7P+NpqT6w==
1138-
11391139
11401140
version "2.3.1"
11411141
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.3.1.tgz#523fe2678aec7b04e8041909292fe8b17059b796"
@@ -1165,11 +1165,6 @@ chalk@^1.0.0, chalk@^1.1.3:
11651165
strip-ansi "^3.0.0"
11661166
supports-color "^2.0.0"
11671167

1168-
character-entities-html4@^1.0.0:
1169-
version "1.1.3"
1170-
resolved "https://registry.yarnpkg.com/character-entities-html4/-/character-entities-html4-1.1.3.tgz#5ce6e01618e47048ac22f34f7f39db5c6fd679ef"
1171-
integrity sha512-SwnyZ7jQBCRHELk9zf2CN5AnGEc2nA+uKMZLHvcqhpPprjkYhiLn0DywMHgN5ttFZuITMATbh68M6VIVKwJbcg==
1172-
11731168
character-entities-legacy@^1.0.0:
11741169
version "1.1.3"
11751170
resolved "https://registry.yarnpkg.com/character-entities-legacy/-/character-entities-legacy-1.1.3.tgz#3c729991d9293da0ede6dddcaf1f2ce1009ee8b4"
@@ -2914,11 +2909,6 @@ [email protected], is-alphabetical@^1.0.0:
29142909
resolved "https://registry.yarnpkg.com/is-alphabetical/-/is-alphabetical-1.0.3.tgz#eb04cc47219a8895d8450ace4715abff2258a1f8"
29152910
integrity sha512-eEMa6MKpHFzw38eKm56iNNi6GJ7lf6aLLio7Kr23sJPAECscgRtZvOBYybejWDQ2bM949Y++61PY+udzj5QMLA==
29162911

2917-
is-alphanumeric@^1.0.0:
2918-
version "1.0.0"
2919-
resolved "https://registry.yarnpkg.com/is-alphanumeric/-/is-alphanumeric-1.0.0.tgz#4a9cef71daf4c001c1d81d63d140cf53fd6889f4"
2920-
integrity sha1-Spzvcdr0wAHB2B1j0UDPU/1oifQ=
2921-
29222912
is-alphanumerical@^1.0.0:
29232913
version "1.0.3"
29242914
resolved "https://registry.yarnpkg.com/is-alphanumerical/-/is-alphanumerical-1.0.3.tgz#57ae21c374277b3defe0274c640a5704b8f6657c"
@@ -2973,7 +2963,7 @@ is-date-object@^1.0.1:
29732963
resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16"
29742964
integrity sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY=
29752965

2976-
is-decimal@^1.0.0, is-decimal@^1.0.2:
2966+
is-decimal@^1.0.0:
29772967
version "1.0.3"
29782968
resolved "https://registry.yarnpkg.com/is-decimal/-/is-decimal-1.0.3.tgz#381068759b9dc807d8c0dc0bfbae2b68e1da48b7"
29792969
integrity sha512-bvLSwoDg2q6Gf+E2LEPiklHZxxiSi3XAh4Mav65mKqTfCO1HM3uBs24TjEH8iJX3bbDdLXKJXBTmGzuTUuAEjQ==
@@ -3977,11 +3967,6 @@ log-update@^2.3.0:
39773967
cli-cursor "^2.0.0"
39783968
wrap-ansi "^3.0.1"
39793969

3980-
longest-streak@^2.0.1:
3981-
version "2.0.3"
3982-
resolved "https://registry.yarnpkg.com/longest-streak/-/longest-streak-2.0.3.tgz#3de7a3f47ee18e9074ded8575b5c091f5d0a4105"
3983-
integrity sha512-9lz5IVdpwsKLMzQi0MQ+oD9EA0mIGcWYP7jXMTZVXP8D42PwuAk+M/HBFYQoxt1G5OR8m7aSIgb1UymfWGBWEw==
3984-
39853970
loose-envify@^1.0.0, loose-envify@^1.1.0, loose-envify@^1.4.0:
39863971
version "1.4.0"
39873972
resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.4.0.tgz#71ee51fa7be4caec1a63839f7e682d8132d30caf"
@@ -4051,18 +4036,6 @@ markdown-escapes@^1.0.0:
40514036
resolved "https://registry.yarnpkg.com/markdown-escapes/-/markdown-escapes-1.0.3.tgz#6155e10416efaafab665d466ce598216375195f5"
40524037
integrity sha512-XUi5HJhhV5R74k8/0H2oCbCiYf/u4cO/rX8tnGkRvrqhsr5BRNU6Mg0yt/8UIx1iIS8220BNJsDb7XnILhLepw==
40534038

4054-
markdown-table@^1.1.0:
4055-
version "1.1.3"
4056-
resolved "https://registry.yarnpkg.com/markdown-table/-/markdown-table-1.1.3.tgz#9fcb69bcfdb8717bfd0398c6ec2d93036ef8de60"
4057-
integrity sha512-1RUZVgQlpJSPWYbFSpmudq5nHY1doEIv89gBtF0s4gW1GF2XorxcA/70M5vq7rLv0a6mhOUccRsqkwhwLCIQ2Q==
4058-
4059-
mdast-util-compact@^1.0.0:
4060-
version "1.0.3"
4061-
resolved "https://registry.yarnpkg.com/mdast-util-compact/-/mdast-util-compact-1.0.3.tgz#98a25cc8a7865761a41477b3a87d1dcef0b1e79d"
4062-
integrity sha512-nRiU5GpNy62rZppDKbLwhhtw5DXoFMqw9UNZFmlPsNaQCZ//WLjGKUwWMdJrUH+Se7UvtO2gXtAMe0g/N+eI5w==
4063-
dependencies:
4064-
unist-util-visit "^1.1.0"
4065-
40664039
mem@^4.0.0:
40674040
version "4.3.0"
40684041
resolved "https://registry.yarnpkg.com/mem/-/mem-4.3.0.tgz#461af497bc4ae09608cdb2e60eefb69bff744178"
@@ -4672,7 +4645,7 @@ parent-module@^1.0.0:
46724645
dependencies:
46734646
callsites "^3.0.0"
46744647

4675-
parse-entities@^1.0.2, parse-entities@^1.1.0:
4648+
parse-entities@^1.1.0:
46764649
version "1.2.2"
46774650
resolved "https://registry.yarnpkg.com/parse-entities/-/parse-entities-1.2.2.tgz#c31bf0f653b6661354f8973559cb86dd1d5edf50"
46784651
integrity sha512-NzfpbxW/NPrzZ/yYSoQxyqUZMZXIdCfE0OIN4ESsnptHJECoUk3FZktxNuzQf4tjt5UEopnxpYJbvYuxIFDdsg==
@@ -5169,26 +5142,6 @@ [email protected], remark-parse@^7.0.0:
51695142
vfile-location "^2.0.0"
51705143
xtend "^4.0.1"
51715144

5172-
remark-stringify@^7.0.1:
5173-
version "7.0.1"
5174-
resolved "https://registry.yarnpkg.com/remark-stringify/-/remark-stringify-7.0.1.tgz#da38346a53efe8ce4adc9172002692b68dd88833"
5175-
integrity sha512-H+4PWuPdJygRjyoNQ4+FAPDD+LqO7h6P80DFeYPPCd2a51o9+C4Gf0oflnO7shFH43JxtCdaUE4WBHhM6Ci4aA==
5176-
dependencies:
5177-
ccount "^1.0.0"
5178-
is-alphanumeric "^1.0.0"
5179-
is-decimal "^1.0.0"
5180-
is-whitespace-character "^1.0.0"
5181-
longest-streak "^2.0.1"
5182-
markdown-escapes "^1.0.0"
5183-
markdown-table "^1.1.0"
5184-
mdast-util-compact "^1.0.0"
5185-
parse-entities "^1.0.2"
5186-
repeat-string "^1.5.4"
5187-
state-toggle "^1.0.0"
5188-
stringify-entities "^2.0.0"
5189-
unherit "^1.0.4"
5190-
xtend "^4.0.1"
5191-
51925145
remove-trailing-separator@^1.0.1:
51935146
version "1.1.0"
51945147
resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz#c24bce2a283adad5bc3f58e0d48249b92379d8ef"
@@ -5755,17 +5708,6 @@ string_decoder@~1.1.1:
57555708
dependencies:
57565709
safe-buffer "~5.1.0"
57575710

5758-
stringify-entities@^2.0.0:
5759-
version "2.0.0"
5760-
resolved "https://registry.yarnpkg.com/stringify-entities/-/stringify-entities-2.0.0.tgz#fa7ca6614b355fb6c28448140a20c4ede7462827"
5761-
integrity sha512-fqqhZzXyAM6pGD9lky/GOPq6V4X0SeTAFBl0iXb/BzOegl40gpf/bV3QQP7zULNYvjr6+Dx8SCaDULjVoOru0A==
5762-
dependencies:
5763-
character-entities-html4 "^1.0.0"
5764-
character-entities-legacy "^1.0.0"
5765-
is-alphanumerical "^1.0.0"
5766-
is-decimal "^1.0.2"
5767-
is-hexadecimal "^1.0.0"
5768-
57695711
stringify-object@^3.3.0:
57705712
version "3.3.0"
57715713
resolved "https://registry.yarnpkg.com/stringify-object/-/stringify-object-3.3.0.tgz#703065aefca19300d3ce88af4f5b3956d7556629"

0 commit comments

Comments
 (0)