Skip to content

Commit

Permalink
changes from remote v2.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nirtamir2 committed Jun 10, 2024
1 parent 18ab563 commit c2769f4
Show file tree
Hide file tree
Showing 14 changed files with 290 additions and 230 deletions.
27 changes: 27 additions & 0 deletions fixtures/output/js/jsx.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
export function HelloWorld({
greeting = 'hello',
greeted = '"World"',
silent = false,
onMouseOver,
}) {
if (!greeting) {
return null
};

// TODO: Don't use random in render
const num = Math.floor (Math.random() * 1e+7).toString()
.replace(/\.\d+/g, '')

return (
<div className="HelloWorld" title={`You are visitor number ${num}`} onMouseOver={onMouseOver}>
<strong>{ greeting.slice(0, 1).toUpperCase() + greeting.slice(1).toLowerCase() }</strong>
{greeting.endsWith(',')
? ' '
: <span style={{ color: '\grey' }}>", "</span> }
<em>
{ greeted }
</em>
{ (silent) ? '.' : '!'}
</div>
)
}
32 changes: 32 additions & 0 deletions fixtures/output/js/tsx.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
export function Component1() {
return <div />
}

export function jsx2() {
const props = { a: 1, b: 2 }
return (
<a foo="bar" bar="foo">
<div
{...props}
a={1}
b="2"
>
Inline Text
</div>
<Component1>
Block Text
</Component1>
<div>
Mixed
<div>Foo</div>
Text
<b> Bar</b>
</div>
<p>
foo
<i>bar</i>
<b>baz</b>
</p>
</a>
)
}
34 changes: 0 additions & 34 deletions fixtures/output/no-markdown-with-formatters/jsx.jsx

This file was deleted.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"eslint-plugin-ssr-friendly": "^1.3.0",
"eslint-plugin-toml": "^0.11.0",
"eslint-plugin-unicorn": "^53.0.0",
"eslint-plugin-unused-imports": "^3.2.0",
"eslint-plugin-unused-imports": "^4.0.0",
"eslint-plugin-vitest": "^0.5.4",
"eslint-plugin-vue": "^9.26.0",
"eslint-plugin-workspaces": "^0.10.1",
Expand Down Expand Up @@ -202,7 +202,7 @@
"eslint-plugin-security": "^3.0.0",
"eslint-plugin-solid": "^0.14.0",
"eslint-plugin-storybook": "^0.8.0",
"eslint-plugin-svelte": "^2.39.0",
"eslint-plugin-svelte": "^2.39.3",
"eslint-plugin-tailwindcss": "^3.17.3",
"eslint-plugin-tsdoc": "^0.3.0",
"eslint-ts-patch": "9.4.0-0",
Expand All @@ -217,9 +217,9 @@
"rimraf": "^5.0.7",
"simple-git-hooks": "^2.11.1",
"svelte": "^4.2.18",
"svelte-eslint-parser": "^0.36.0",
"svelte-eslint-parser": "^0.37.0",
"tsup": "^8.1.0",
"tsx": "^4.14.0",
"tsx": "^4.15.1",
"typescript": "^5.4.5",
"vitest": "^1.6.0",
"vue": "^3.4.27"
Expand Down
Loading

0 comments on commit c2769f4

Please sign in to comment.