From 55130c7eaabbafd74feb5bce8071b23074b38b33 Mon Sep 17 00:00:00 2001 From: JounQin Date: Mon, 11 Dec 2023 02:26:31 +0800 Subject: [PATCH] fix: incorrect JSXAttribute position info close #488, related #425 --- packages/eslint-mdx/src/worker.ts | 9 +- test/__snapshots__/fixtures.test.ts.snap | 466 ++++++------ test/__snapshots__/parser.test.ts.snap | 912 +++++++++-------------- 3 files changed, 582 insertions(+), 805 deletions(-) diff --git a/packages/eslint-mdx/src/worker.ts b/packages/eslint-mdx/src/worker.ts index 2dd50f5..2322c2b 100644 --- a/packages/eslint-mdx/src/worker.ts +++ b/packages/eslint-mdx/src/worker.ts @@ -633,7 +633,7 @@ runAsWorker( } return { - ...attrNamePos, + ...normalizeNode(attrStart, lastAttrOffset + 1), type: 'JSXAttribute', name: { ...attrNamePos, @@ -713,11 +713,16 @@ runAsWorker( const expression = handleNode(node) + // keep for debugging + // if (+1 === 1) { + // throw new SyntaxError(JSON.stringify({ node, expression }, null, 2)) + // } + if (expression) { body.push({ ...normalizePosition(node.position), type: 'ExpressionStatement', - expression: handleNode(node) as Expression, + expression: expression as Expression, }) } diff --git a/test/__snapshots__/fixtures.test.ts.snap b/test/__snapshots__/fixtures.test.ts.snap index 17778dc..1d4a3c3 100644 --- a/test/__snapshots__/fixtures.test.ts.snap +++ b/test/__snapshots__/fixtures.test.ts.snap @@ -312,7 +312,7 @@ exports[`fixtures should match all snapshots: 292.mdx 1`] = ` }, { "column": 46, - "endColumn": 51, + "endColumn": 58, "endLine": 5, "line": 5, "message": "Unknown property 'story' found", @@ -392,10 +392,23 @@ exports[`fixtures should match all snapshots: 380.mdx 1`] = ` "fix": { "range": [ 426, - 451, + 720, + ], + "text": "decorators={[ + moduleMetadata({ + imports: [ + ButtonModule, + IconModule, + FormsModule, + FormModule, + RadioModule, + TabsModule, + CardModule, ], - "text": "decorators="Tabs" - title", + declarations: [ActiveTestComponent, LazyTestComponent], + }), + ]} + title="Tabs"", }, "line": 21, "message": "Props should be sorted alphabetically", @@ -411,10 +424,10 @@ exports[`fixtures should match all snapshots: 380.mdx 1`] = ` "fix": { "range": [ 824, - 847, + 855, ], - "text": "height="Basic" - name", + "text": "height="100px" + name="Basic"", }, "line": 46, "message": "Props should be sorted alphabetically", @@ -430,10 +443,10 @@ exports[`fixtures should match all snapshots: 380.mdx 1`] = ` "fix": { "range": [ 1499, - 1521, + 1529, ], - "text": "height="Card" - name", + "text": "height="200px" + name="Card"", }, "line": 83, "message": "Props should be sorted alphabetically", @@ -449,10 +462,10 @@ exports[`fixtures should match all snapshots: 380.mdx 1`] = ` "fix": { "range": [ 1982, - 2004, + 2012, ], - "text": "height="Size" - name", + "text": "height="200px" + name="Size"", }, "line": 105, "message": "Props should be sorted alphabetically", @@ -468,10 +481,10 @@ exports[`fixtures should match all snapshots: 380.mdx 1`] = ` "fix": { "range": [ 2920, - 2949, + 2957, ], - "text": "height="CustomLabel" - name", + "text": "height="200px" + name="CustomLabel"", }, "line": 139, "message": "Props should be sorted alphabetically", @@ -524,10 +537,10 @@ exports[`fixtures should match all snapshots: 380.mdx 1`] = ` "fix": { "range": [ 3750, - 3776, + 3784, ], - "text": "height="Editable" - name", + "text": "height="100px" + name="Editable"", }, "line": 174, "message": "Props should be sorted alphabetically", @@ -640,10 +653,10 @@ exports[`fixtures should match all snapshots: 380.mdx 1`] = ` "fix": { "range": [ 4788, - 4814, + 4822, ], - "text": "height="Disabled" - name", + "text": "height="100px" + name="Disabled"", }, "line": 220, "message": "Props should be sorted alphabetically", @@ -659,10 +672,10 @@ exports[`fixtures should match all snapshots: 380.mdx 1`] = ` "fix": { "range": [ 5581, - 5603, + 5611, ], - "text": "height="Lazy" - name", + "text": "height="150px" + name="Lazy"", }, "line": 253, "message": "Props should be sorted alphabetically", @@ -678,10 +691,10 @@ exports[`fixtures should match all snapshots: 380.mdx 1`] = ` "fix": { "range": [ 6792, - 6814, + 6822, ], - "text": "height="Nest" - name", + "text": "height="100px" + name="Nest"", }, "line": 299, "message": "Props should be sorted alphabetically", @@ -750,10 +763,10 @@ exports[`fixtures should match all snapshots: 380.mdx 1`] = ` "fix": { "range": [ 8233, - 8256, + 8264, ], - "text": "height="Title" - name", + "text": "height="100px" + name="Title"", }, "line": 348, "message": "Props should be sorted alphabetically", @@ -785,8 +798,7 @@ import { } from '@alauda/ui' # Tabs @@ -810,8 +823,8 @@ import { {{ template: /* HTML */ \` @@ -847,8 +860,8 @@ import { {{ template: /* HTML */ \` @@ -869,8 +882,8 @@ import { {{ template: /* HTML */ \` @@ -903,8 +916,8 @@ import { {{ template: /* HTML */ \` @@ -940,8 +953,8 @@ import { {{ template: /* HTML */ \` @@ -986,8 +999,8 @@ import { {{ template: /* HTML */ \` @@ -1019,8 +1032,8 @@ import { {{ template: /* HTML */ \` @@ -1065,8 +1078,8 @@ import { {{ template: /* HTML */ \` @@ -1116,8 +1129,8 @@ import { {{ template: /* HTML */ \` @@ -1544,21 +1557,21 @@ exports[`fixtures should match all snapshots: 450.mdx 1`] = ` "fix": { "range": [ 114, - 383, - ], - "text": "alt="https://via.placeholder.com/250x250" - aria-disabled="" - className="" - height - - loading="my-image" - onClick={250} - onError={250} - onLoad="eager" - src={{ display: 'block' }} - style={() => console.log('onLoad')} - title={() => console.log('onError')} - width", + 414, + ], + "text": "alt="" + aria-disabled + className="my-image" + height={250} + + loading="eager" + onClick={() => console.log('onClick')} + onError={() => console.log('onError')} + onLoad={() => console.log('onLoad')} + src="https://via.placeholder.com/250x250" + style={{ display: 'block' }} + title="" + width={250}", }, "line": 11, "message": "Props should be sorted alphabetically", @@ -1574,21 +1587,21 @@ exports[`fixtures should match all snapshots: 450.mdx 1`] = ` "fix": { "range": [ 114, - 383, - ], - "text": "alt="https://via.placeholder.com/250x250" - aria-disabled="" - className="" - height - - loading="my-image" - onClick={250} - onError={250} - onLoad="eager" - src={{ display: 'block' }} - style={() => console.log('onLoad')} - title={() => console.log('onError')} - width", + 414, + ], + "text": "alt="" + aria-disabled + className="my-image" + height={250} + + loading="eager" + onClick={() => console.log('onClick')} + onError={() => console.log('onError')} + onLoad={() => console.log('onLoad')} + src="https://via.placeholder.com/250x250" + style={{ display: 'block' }} + title="" + width={250}", }, "line": 13, "message": "Props should be sorted alphabetically", @@ -1622,21 +1635,21 @@ exports[`fixtures should match all snapshots: 450.mdx 1`] = ` "fix": { "range": [ 114, - 383, - ], - "text": "alt="https://via.placeholder.com/250x250" - aria-disabled="" - className="" - height - - loading="my-image" - onClick={250} - onError={250} - onLoad="eager" - src={{ display: 'block' }} - style={() => console.log('onLoad')} - title={() => console.log('onError')} - width", + 414, + ], + "text": "alt="" + aria-disabled + className="my-image" + height={250} + + loading="eager" + onClick={() => console.log('onClick')} + onError={() => console.log('onError')} + onLoad={() => console.log('onLoad')} + src="https://via.placeholder.com/250x250" + style={{ display: 'block' }} + title="" + width={250}", }, "line": 15, "message": "Props should be sorted alphabetically", @@ -1688,21 +1701,21 @@ exports[`fixtures should match all snapshots: 450.mdx 1`] = ` "fix": { "range": [ 114, - 383, - ], - "text": "alt="https://via.placeholder.com/250x250" - aria-disabled="" - className="" - height - - loading="my-image" - onClick={250} - onError={250} - onLoad="eager" - src={{ display: 'block' }} - style={() => console.log('onLoad')} - title={() => console.log('onError')} - width", + 414, + ], + "text": "alt="" + aria-disabled + className="my-image" + height={250} + + loading="eager" + onClick={() => console.log('onClick')} + onError={() => console.log('onError')} + onLoad={() => console.log('onLoad')} + src="https://via.placeholder.com/250x250" + style={{ display: 'block' }} + title="" + width={250}", }, "line": 17, "message": "Props should be sorted alphabetically", @@ -1736,21 +1749,21 @@ exports[`fixtures should match all snapshots: 450.mdx 1`] = ` "fix": { "range": [ 114, - 383, - ], - "text": "alt="https://via.placeholder.com/250x250" - aria-disabled="" - className="" - height - - loading="my-image" - onClick={250} - onError={250} - onLoad="eager" - src={{ display: 'block' }} - style={() => console.log('onLoad')} - title={() => console.log('onError')} - width", + 414, + ], + "text": "alt="" + aria-disabled + className="my-image" + height={250} + + loading="eager" + onClick={() => console.log('onClick')} + onError={() => console.log('onError')} + onLoad={() => console.log('onLoad')} + src="https://via.placeholder.com/250x250" + style={{ display: 'block' }} + title="" + width={250}", }, "line": 18, "message": "Props should be sorted alphabetically", @@ -1784,21 +1797,21 @@ exports[`fixtures should match all snapshots: 450.mdx 1`] = ` "fix": { "range": [ 114, - 383, - ], - "text": "alt="https://via.placeholder.com/250x250" - aria-disabled="" - className="" - height - - loading="my-image" - onClick={250} - onError={250} - onLoad="eager" - src={{ display: 'block' }} - style={() => console.log('onLoad')} - title={() => console.log('onError')} - width", + 414, + ], + "text": "alt="" + aria-disabled + className="my-image" + height={250} + + loading="eager" + onClick={() => console.log('onClick')} + onError={() => console.log('onError')} + onLoad={() => console.log('onLoad')} + src="https://via.placeholder.com/250x250" + style={{ display: 'block' }} + title="" + width={250}", }, "line": 19, "message": "Props should be sorted alphabetically", @@ -1832,21 +1845,21 @@ exports[`fixtures should match all snapshots: 450.mdx 1`] = ` "fix": { "range": [ 114, - 383, - ], - "text": "alt="https://via.placeholder.com/250x250" - aria-disabled="" - className="" - height - - loading="my-image" - onClick={250} - onError={250} - onLoad="eager" - src={{ display: 'block' }} - style={() => console.log('onLoad')} - title={() => console.log('onError')} - width", + 414, + ], + "text": "alt="" + aria-disabled + className="my-image" + height={250} + + loading="eager" + onClick={() => console.log('onClick')} + onError={() => console.log('onError')} + onLoad={() => console.log('onLoad')} + src="https://via.placeholder.com/250x250" + style={{ display: 'block' }} + title="" + width={250}", }, "line": 20, "message": "Props should be sorted alphabetically", @@ -1880,21 +1893,21 @@ exports[`fixtures should match all snapshots: 450.mdx 1`] = ` "fix": { "range": [ 114, - 383, - ], - "text": "alt="https://via.placeholder.com/250x250" - aria-disabled="" - className="" - height - - loading="my-image" - onClick={250} - onError={250} - onLoad="eager" - src={{ display: 'block' }} - style={() => console.log('onLoad')} - title={() => console.log('onError')} - width", + 414, + ], + "text": "alt="" + aria-disabled + className="my-image" + height={250} + + loading="eager" + onClick={() => console.log('onClick')} + onError={() => console.log('onError')} + onLoad={() => console.log('onLoad')} + src="https://via.placeholder.com/250x250" + style={{ display: 'block' }} + title="" + width={250}", }, "line": 21, "message": "Props should be sorted alphabetically", @@ -1928,21 +1941,21 @@ exports[`fixtures should match all snapshots: 450.mdx 1`] = ` "fix": { "range": [ 114, - 383, - ], - "text": "alt="https://via.placeholder.com/250x250" - aria-disabled="" - className="" - height - - loading="my-image" - onClick={250} - onError={250} - onLoad="eager" - src={{ display: 'block' }} - style={() => console.log('onLoad')} - title={() => console.log('onError')} - width", + 414, + ], + "text": "alt="" + aria-disabled + className="my-image" + height={250} + + loading="eager" + onClick={() => console.log('onClick')} + onError={() => console.log('onError')} + onLoad={() => console.log('onLoad')} + src="https://via.placeholder.com/250x250" + style={{ display: 'block' }} + title="" + width={250}", }, "line": 22, "message": "Props should be sorted alphabetically", @@ -1964,19 +1977,19 @@ exports[`fixtures should match all snapshots: 450.mdx 2`] = ` Lorem ipsum dolor sit amet. https://via.placeholder.com/250x250 console.log('onLoad')} -title={() => console.log('onError')} -width={() => console.log('onClick')} + alt="" + aria-disabled + className="my-image" + height={250} + +loading="eager" +onClick={() => console.log('onClick')} +onError={() => console.log('onError')} +onLoad={() => console.log('onLoad')} +src="https://via.placeholder.com/250x250" +style={{ display: 'block' }} +title="" +width={250} /> " `; @@ -2001,13 +2014,13 @@ exports[`fixtures should match all snapshots: 488.mdx 1`] = ` "fix": { "range": [ 9, - 68, + 74, ], "text": "alt="alt" - format="src" - height="315" - src="100" - width", + format="svg" + height="100" + src="src" + width="315"", }, "line": 5, "message": "Props should be sorted alphabetically", @@ -2023,13 +2036,13 @@ exports[`fixtures should match all snapshots: 488.mdx 1`] = ` "fix": { "range": [ 9, - 68, + 74, ], "text": "alt="alt" - format="src" - height="315" - src="100" - width", + format="svg" + height="100" + src="src" + width="315"", }, "line": 6, "message": "Props should be sorted alphabetically", @@ -2044,10 +2057,10 @@ exports[`fixtures should match all snapshots: 488.mdx 1`] = ` exports[`fixtures should match all snapshots: 488.mdx 2`] = ` "alt " `; @@ -2177,11 +2190,14 @@ exports[`fixtures should match all snapshots: blank-lines.mdx 1`] = ` "fix": { "range": [ 163, - 193, + 250, ], - "text": "bg={3} - p='lightgray' - style", + "text": "bg='lightgray' + p={3} + style={{ + textAlign: 'center', + fontWeight: 'bold', + }}", }, "line": 10, "message": "Props should be sorted alphabetically", @@ -2299,8 +2315,8 @@ If you have an existing project you want to integrate MDX with, check out the installation guides. console.log('onLoad')}", "start": 296, "type": "JSXAttribute", "value": { @@ -35212,12 +35031,12 @@ exports[`parser should match all AST snapshots: 450.mdx 1`] = ` }, }, { - "end": 342, + "end": 373, "loc": { "end": { - "column": 9, + "column": 40, "line": 21, - "offset": 342, + "offset": 373, }, "start": { "column": 2, @@ -35250,9 +35069,9 @@ exports[`parser should match all AST snapshots: 450.mdx 1`] = ` }, "range": [ 335, - 342, + 373, ], - "raw": "onError", + "raw": "onError={() => console.log('onError')}", "start": 335, "type": "JSXAttribute", "value": { @@ -35419,12 +35238,12 @@ exports[`parser should match all AST snapshots: 450.mdx 1`] = ` }, }, { - "end": 383, + "end": 414, "loc": { "end": { - "column": 9, + "column": 40, "line": 22, - "offset": 383, + "offset": 414, }, "start": { "column": 2, @@ -35457,9 +35276,9 @@ exports[`parser should match all AST snapshots: 450.mdx 1`] = ` }, "range": [ 376, - 383, + 414, ], - "raw": "onClick", + "raw": "onClick={() => console.log('onClick')}", "start": 376, "type": "JSXAttribute", "value": { @@ -37845,12 +37664,12 @@ exports[`parser should match all AST snapshots: 488.mdx 1`] = ` "openingElement": { "attributes": [ { - "end": 12, + "end": 18, "loc": { "end": { - "column": 5, + "column": 11, "line": 2, - "offset": 12, + "offset": 18, }, "start": { "column": 2, @@ -37883,9 +37702,9 @@ exports[`parser should match all AST snapshots: 488.mdx 1`] = ` }, "range": [ 9, - 12, + 18, ], - "raw": "alt", + "raw": "alt="alt"", "start": 9, "type": "JSXAttribute", "value": { @@ -37913,12 +37732,12 @@ exports[`parser should match all AST snapshots: 488.mdx 1`] = ` }, }, { - "end": 24, + "end": 30, "loc": { "end": { - "column": 5, + "column": 11, "line": 3, - "offset": 24, + "offset": 30, }, "start": { "column": 2, @@ -37951,9 +37770,9 @@ exports[`parser should match all AST snapshots: 488.mdx 1`] = ` }, "range": [ 21, - 24, + 30, ], - "raw": "src", + "raw": "src="src"", "start": 21, "type": "JSXAttribute", "value": { @@ -37981,12 +37800,12 @@ exports[`parser should match all AST snapshots: 488.mdx 1`] = ` }, }, { - "end": 38, + "end": 44, "loc": { "end": { - "column": 7, + "column": 13, "line": 4, - "offset": 38, + "offset": 44, }, "start": { "column": 2, @@ -38019,9 +37838,9 @@ exports[`parser should match all AST snapshots: 488.mdx 1`] = ` }, "range": [ 33, - 38, + 44, ], - "raw": "width", + "raw": "width="315"", "start": 33, "type": "JSXAttribute", "value": { @@ -38049,12 +37868,12 @@ exports[`parser should match all AST snapshots: 488.mdx 1`] = ` }, }, { - "end": 53, + "end": 59, "loc": { "end": { - "column": 8, + "column": 14, "line": 5, - "offset": 53, + "offset": 59, }, "start": { "column": 2, @@ -38087,9 +37906,9 @@ exports[`parser should match all AST snapshots: 488.mdx 1`] = ` }, "range": [ 47, - 53, + 59, ], - "raw": "height", + "raw": "height="100"", "start": 47, "type": "JSXAttribute", "value": { @@ -38117,12 +37936,12 @@ exports[`parser should match all AST snapshots: 488.mdx 1`] = ` }, }, { - "end": 68, + "end": 74, "loc": { "end": { - "column": 8, + "column": 14, "line": 6, - "offset": 68, + "offset": 74, }, "start": { "column": 2, @@ -38155,9 +37974,9 @@ exports[`parser should match all AST snapshots: 488.mdx 1`] = ` }, "range": [ 62, - 68, + 74, ], - "raw": "format", + "raw": "format="svg"", "start": 62, "type": "JSXAttribute", "value": { @@ -39945,28 +39764,6 @@ exports[`parser should match all AST snapshots: basic.mdx 1`] = ` "type": "Block", "value": " This is a comment ", }, - { - "end": 300, - "loc": { - "end": { - "column": 31, - "line": 19, - "offset": 300, - }, - "start": { - "column": 8, - "line": 19, - "offset": 277, - }, - }, - "range": [ - 277, - 300, - ], - "start": 277, - "type": "Block", - "value": " This is a comment ", - }, ], "end": 405, "loc": { @@ -41161,12 +40958,12 @@ exports[`parser should match all AST snapshots: blank-lines.mdx 1`] = ` "openingElement": { "attributes": [ { - "end": 164, + "end": 168, "loc": { "end": { - "column": 3, + "column": 7, "line": 9, - "offset": 164, + "offset": 168, }, "start": { "column": 2, @@ -41199,9 +40996,9 @@ exports[`parser should match all AST snapshots: blank-lines.mdx 1`] = ` }, "range": [ 163, - 164, + 168, ], - "raw": "p", + "raw": "p={3}", "start": 163, "type": "JSXAttribute", "value": { @@ -41251,12 +41048,12 @@ exports[`parser should match all AST snapshots: blank-lines.mdx 1`] = ` }, }, { - "end": 173, + "end": 185, "loc": { "end": { - "column": 4, + "column": 16, "line": 10, - "offset": 173, + "offset": 185, }, "start": { "column": 2, @@ -41289,9 +41086,9 @@ exports[`parser should match all AST snapshots: blank-lines.mdx 1`] = ` }, "range": [ 171, - 173, + 185, ], - "raw": "bg", + "raw": "bg='lightgray'", "start": 171, "type": "JSXAttribute", "value": { @@ -41319,12 +41116,12 @@ exports[`parser should match all AST snapshots: blank-lines.mdx 1`] = ` }, }, { - "end": 193, + "end": 250, "loc": { "end": { - "column": 7, - "line": 11, - "offset": 193, + "column": 4, + "line": 14, + "offset": 250, }, "start": { "column": 2, @@ -41357,9 +41154,12 @@ exports[`parser should match all AST snapshots: blank-lines.mdx 1`] = ` }, "range": [ 188, - 193, + 250, ], - "raw": "style", + "raw": "style={{ + textAlign: 'center', + fontWeight: 'bold', + }}", "start": 188, "type": "JSXAttribute", "value": { @@ -41669,12 +41469,12 @@ exports[`parser should match all AST snapshots: blank-lines.mdx 1`] = ` "openingElement": { "attributes": [ { - "end": 608, + "end": 630, "loc": { "end": { - "column": 14, + "column": 36, "line": 31, - "offset": 608, + "offset": 630, }, "start": { "column": 7, @@ -41707,9 +41507,9 @@ exports[`parser should match all AST snapshots: blank-lines.mdx 1`] = ` }, "range": [ 601, - 608, + 630, ], - "raw": "tweetId", + "raw": "tweetId="1116723357410447360"", "start": 601, "type": "JSXAttribute", "value": { @@ -42019,12 +41819,12 @@ exports[`parser should match all AST snapshots: blank-lines.mdx 1`] = ` "openingElement": { "attributes": [ { - "end": 750, + "end": 764, "loc": { "end": { - "column": 16, + "column": 30, "line": 41, - "offset": 750, + "offset": 764, }, "start": { "column": 9, @@ -42057,9 +41857,9 @@ exports[`parser should match all AST snapshots: blank-lines.mdx 1`] = ` }, "range": [ 743, - 750, + 764, ], - "raw": "videoId", + "raw": "videoId="4fHw4GeW3EU"", "start": 743, "type": "JSXAttribute", "value": { @@ -43968,12 +43768,12 @@ exports[`parser should match all AST snapshots: jsx-in-list.mdx 1`] = ` "openingElement": { "attributes": [ { - "end": 13, + "end": 44, "loc": { "end": { - "column": 13, + "column": 44, "line": 1, - "offset": 13, + "offset": 44, }, "start": { "column": 9, @@ -44006,9 +43806,9 @@ exports[`parser should match all AST snapshots: jsx-in-list.mdx 1`] = ` }, "range": [ 9, - 13, + 44, ], - "raw": "kind", + "raw": "kind="docs-packages-vuetify-preset"", "start": 9, "type": "JSXAttribute", "value": { @@ -44036,12 +43836,12 @@ exports[`parser should match all AST snapshots: jsx-in-list.mdx 1`] = ` }, }, { - "end": 50, + "end": 57, "loc": { "end": { - "column": 50, + "column": 57, "line": 1, - "offset": 50, + "offset": 57, }, "start": { "column": 45, @@ -44074,9 +43874,9 @@ exports[`parser should match all AST snapshots: jsx-in-list.mdx 1`] = ` }, "range": [ 45, - 50, + 57, ], - "raw": "story", + "raw": "story="page"", "start": 45, "type": "JSXAttribute", "value": { @@ -44267,12 +44067,12 @@ exports[`parser should match all AST snapshots: jsx-in-list.mdx 1`] = ` "openingElement": { "attributes": [ { - "end": 148, + "end": 179, "loc": { "end": { - "column": 13, + "column": 44, "line": 5, - "offset": 148, + "offset": 179, }, "start": { "column": 9, @@ -44305,9 +44105,9 @@ exports[`parser should match all AST snapshots: jsx-in-list.mdx 1`] = ` }, "range": [ 144, - 148, + 179, ], - "raw": "kind", + "raw": "kind="docs-packages-vuetify-preset"", "start": 144, "type": "JSXAttribute", "value": { @@ -44335,12 +44135,12 @@ exports[`parser should match all AST snapshots: jsx-in-list.mdx 1`] = ` }, }, { - "end": 185, + "end": 192, "loc": { "end": { - "column": 50, + "column": 57, "line": 5, - "offset": 185, + "offset": 192, }, "start": { "column": 45, @@ -44373,9 +44173,9 @@ exports[`parser should match all AST snapshots: jsx-in-list.mdx 1`] = ` }, "range": [ 180, - 185, + 192, ], - "raw": "story", + "raw": "story="page"", "start": 180, "type": "JSXAttribute", "value": { @@ -44566,12 +44366,12 @@ exports[`parser should match all AST snapshots: jsx-in-list.mdx 1`] = ` "openingElement": { "attributes": [ { - "end": 283, + "end": 314, "loc": { "end": { - "column": 13, + "column": 44, "line": 9, - "offset": 283, + "offset": 314, }, "start": { "column": 9, @@ -44604,9 +44404,9 @@ exports[`parser should match all AST snapshots: jsx-in-list.mdx 1`] = ` }, "range": [ 279, - 283, + 314, ], - "raw": "kind", + "raw": "kind="docs-packages-vuetify-preset"", "start": 279, "type": "JSXAttribute", "value": { @@ -44634,12 +44434,12 @@ exports[`parser should match all AST snapshots: jsx-in-list.mdx 1`] = ` }, }, { - "end": 320, + "end": 327, "loc": { "end": { - "column": 50, + "column": 57, "line": 9, - "offset": 320, + "offset": 327, }, "start": { "column": 45, @@ -44672,9 +44472,9 @@ exports[`parser should match all AST snapshots: jsx-in-list.mdx 1`] = ` }, "range": [ 315, - 320, + 327, ], - "raw": "story", + "raw": "story="page"", "start": 315, "type": "JSXAttribute", "value": { @@ -44865,12 +44665,12 @@ exports[`parser should match all AST snapshots: jsx-in-list.mdx 1`] = ` "openingElement": { "attributes": [ { - "end": 418, + "end": 449, "loc": { "end": { - "column": 13, + "column": 44, "line": 13, - "offset": 418, + "offset": 449, }, "start": { "column": 9, @@ -44903,9 +44703,9 @@ exports[`parser should match all AST snapshots: jsx-in-list.mdx 1`] = ` }, "range": [ 414, - 418, + 449, ], - "raw": "kind", + "raw": "kind="docs-packages-vuetify-preset"", "start": 414, "type": "JSXAttribute", "value": { @@ -44933,12 +44733,12 @@ exports[`parser should match all AST snapshots: jsx-in-list.mdx 1`] = ` }, }, { - "end": 455, + "end": 462, "loc": { "end": { - "column": 50, + "column": 57, "line": 13, - "offset": 455, + "offset": 462, }, "start": { "column": 45, @@ -44971,9 +44771,9 @@ exports[`parser should match all AST snapshots: jsx-in-list.mdx 1`] = ` }, "range": [ 450, - 455, + 462, ], - "raw": "story", + "raw": "story="page"", "start": 450, "type": "JSXAttribute", "value": { @@ -45164,12 +44964,12 @@ exports[`parser should match all AST snapshots: jsx-in-list.mdx 1`] = ` "openingElement": { "attributes": [ { - "end": 553, + "end": 584, "loc": { "end": { - "column": 13, + "column": 44, "line": 17, - "offset": 553, + "offset": 584, }, "start": { "column": 9, @@ -45202,9 +45002,9 @@ exports[`parser should match all AST snapshots: jsx-in-list.mdx 1`] = ` }, "range": [ 549, - 553, + 584, ], - "raw": "kind", + "raw": "kind="docs-packages-vuetify-preset"", "start": 549, "type": "JSXAttribute", "value": { @@ -45232,12 +45032,12 @@ exports[`parser should match all AST snapshots: jsx-in-list.mdx 1`] = ` }, }, { - "end": 590, + "end": 597, "loc": { "end": { - "column": 50, + "column": 57, "line": 17, - "offset": 590, + "offset": 597, }, "start": { "column": 45, @@ -45270,9 +45070,9 @@ exports[`parser should match all AST snapshots: jsx-in-list.mdx 1`] = ` }, "range": [ 585, - 590, + 597, ], - "raw": "story", + "raw": "story="page"", "start": 585, "type": "JSXAttribute", "value": { @@ -45463,12 +45263,12 @@ exports[`parser should match all AST snapshots: jsx-in-list.mdx 1`] = ` "openingElement": { "attributes": [ { - "end": 688, + "end": 719, "loc": { "end": { - "column": 13, + "column": 44, "line": 21, - "offset": 688, + "offset": 719, }, "start": { "column": 9, @@ -45501,9 +45301,9 @@ exports[`parser should match all AST snapshots: jsx-in-list.mdx 1`] = ` }, "range": [ 684, - 688, + 719, ], - "raw": "kind", + "raw": "kind="docs-packages-vuetify-preset"", "start": 684, "type": "JSXAttribute", "value": { @@ -45531,12 +45331,12 @@ exports[`parser should match all AST snapshots: jsx-in-list.mdx 1`] = ` }, }, { - "end": 725, + "end": 732, "loc": { "end": { - "column": 50, + "column": 57, "line": 21, - "offset": 725, + "offset": 732, }, "start": { "column": 45, @@ -45569,9 +45369,9 @@ exports[`parser should match all AST snapshots: jsx-in-list.mdx 1`] = ` }, "range": [ 720, - 725, + 732, ], - "raw": "story", + "raw": "story="page"", "start": 720, "type": "JSXAttribute", "value": { @@ -50316,28 +50116,6 @@ exports[`parser should match all AST snapshots: no-unused-expressions.mdx 1`] = "type": "Block", "value": " HTML ", }, - { - "end": 54, - "loc": { - "end": { - "column": 24, - "line": 6, - "offset": 54, - }, - "start": { - "column": 14, - "line": 6, - "offset": 44, - }, - }, - "range": [ - 44, - 54, - ], - "start": 44, - "type": "Block", - "value": " HTML ", - }, ], "end": 90, "loc": { @@ -51697,28 +51475,6 @@ exports[`parser should match all AST snapshots: unicorn.mdx 1`] = ` "type": "Block", "value": " HTML ", }, - { - "end": 37, - "loc": { - "end": { - "column": 24, - "line": 3, - "offset": 37, - }, - "start": { - "column": 14, - "line": 3, - "offset": 27, - }, - }, - "range": [ - 27, - 37, - ], - "start": 27, - "type": "Block", - "value": " HTML ", - }, ], "end": 118, "loc": {