Skip to content

Commit

Permalink
chore: bump all deps, add test case for #435
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed May 17, 2023
1 parent 8397553 commit 6d3884b
Show file tree
Hide file tree
Showing 7 changed files with 9,761 additions and 8,629 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@
"@types/eslint": "^8.37.0",
"@types/eslint-plugin-markdown": "^2.0.0",
"@types/jest": "^29.5.1",
"@types/node": "^18.16.3",
"@types/react": "^18.2.0",
"@types/node": "^20.1.7",
"@types/react": "^18.2.6",
"@types/unist": "^2.0.6",
"jest": "^29.5.0",
"patch-package": "^7.0.0",
"react": "^18.2.0",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"type-coverage": "^2.25.0",
"type-coverage": "^2.25.3",
"typescript": "^5.0.4",
"yarn-deduplicate": "^6.0.1"
"yarn-deduplicate": "^6.0.2"
},
"resolutions": {
"prettier": "^2.8.8"
Expand Down
6 changes: 3 additions & 3 deletions packages/eslint-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@
"dependencies": {
"acorn": "^8.8.2",
"acorn-jsx": "^5.3.2",
"espree": "^9.5.1",
"espree": "^9.5.2",
"estree-util-visit": "^1.2.1",
"remark-mdx": "^2.3.0",
"remark-parse": "^10.0.1",
"remark-stringify": "^10.0.2",
"remark-parse": "^10.0.2",
"remark-stringify": "^10.0.3",
"synckit": "^0.8.5",
"tslib": "^2.5.0",
"unified": "^10.1.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-plugin-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"eslint-mdx": "^2.1.0",
"eslint-plugin-markdown": "^3.0.0",
"remark-mdx": "^2.3.0",
"remark-parse": "^10.0.1",
"remark-stringify": "^10.0.2",
"remark-parse": "^10.0.2",
"remark-stringify": "^10.0.3",
"tslib": "^2.5.0",
"unified": "^10.1.2",
"vfile": "^5.3.7"
Expand Down
166 changes: 164 additions & 2 deletions test/__snapshots__/fixtures.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,168 @@ exports[`fixtures should match all snapshots: 429.mdx 1`] = `
]
`;
exports[`fixtures should match all snapshots: 435.mdx 1`] = `
[
{
"column": 1,
"endColumn": 2,
"endLine": 2,
"fix": {
"range": [
8,
9,
],
"text": " ",
},
"line": 2,
"message": "Replace \`\` with \`··\`",
"messageId": "replace",
"nodeType": null,
"ruleId": "prettier/prettier",
"severity": 2,
},
{
"column": 1,
"endColumn": 3,
"endLine": 3,
"fix": {
"range": [
18,
20,
],
"text": " ",
},
"line": 3,
"message": "Replace \`↹↹\` with \`····\`",
"messageId": "replace",
"nodeType": null,
"ruleId": "prettier/prettier",
"severity": 2,
},
{
"column": 1,
"endColumn": 3,
"endLine": 4,
"fix": {
"range": [
39,
41,
],
"text": " ",
},
"line": 4,
"message": "Replace \`↹↹\` with \`····\`",
"messageId": "replace",
"nodeType": null,
"ruleId": "prettier/prettier",
"severity": 2,
},
{
"column": 1,
"endColumn": 2,
"endLine": 5,
"fix": {
"range": [
66,
67,
],
"text": " ",
},
"line": 5,
"message": "Replace \`\` with \`··\`",
"messageId": "replace",
"nodeType": null,
"ruleId": "prettier/prettier",
"severity": 2,
},
{
"column": 1,
"endColumn": 2,
"endLine": 7,
"fix": {
"range": [
72,
73,
],
"text": " ",
},
"line": 7,
"message": "Replace \`\` with \`··\`",
"messageId": "replace",
"nodeType": null,
"ruleId": "prettier/prettier",
"severity": 2,
},
{
"column": 2,
"endColumn": 4,
"endLine": 10,
"fix": {
"range": [
91,
93,
],
"text": "",
},
"line": 10,
"message": "Delete \`··\`",
"messageId": "delete",
"nodeType": null,
"ruleId": "prettier/prettier",
"severity": 2,
},
{
"column": 3,
"endColumn": 16,
"endLine": 12,
"fix": {
"range": [
102,
115,
],
"text": "<Components
",
},
"line": 12,
"message": "Replace \`··<Components\` with \`<Components⏎···\`",
"messageId": "replace",
"nodeType": null,
"ruleId": "prettier/prettier",
"severity": 2,
},
{
"column": 6,
"endColumn": 16,
"endLine": 12,
"line": 12,
"message": "'Components' is not defined.",
"messageId": "undefined",
"nodeType": "JSXIdentifier",
"ruleId": "react/jsx-no-undef",
"severity": 2,
},
{
"column": 1,
"endColumn": 7,
"endLine": 13,
"fix": {
"range": [
124,
130,
],
"text": "\`}
",
},
"line": 13,
"message": "Replace \`····\`}\` with \`\`}⏎·\`",
"messageId": "replace",
"nodeType": null,
"ruleId": "prettier/prettier",
"severity": 2,
},
]
`;
exports[`fixtures should match all snapshots: 445.mdx 1`] = `
[
{
Expand Down Expand Up @@ -714,8 +876,8 @@ the installation guides.
p={3}
bg="lightgray"
style={{
textAlign: 'center',
fontWeight: 'bold',
textAlign: 'center',
fontWeight: 'bold',
}}
>
[Next.js](/getting-started/next) |
Expand Down
Loading

0 comments on commit 6d3884b

Please sign in to comment.