Skip to content

Commit

Permalink
chore: no braces for strings in JSX
Browse files Browse the repository at this point in the history
  • Loading branch information
schiller-manuel committed Sep 12, 2024
1 parent 79860f9 commit d328172
Show file tree
Hide file tree
Showing 24 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion docs/framework/react/start/server-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ function Home() {
<form
action={updateCount.url}
method="POST"
encType={'multipart/form-data'}
encType="multipart/form-data"
>
<input type="number" name="addBy" defaultValue="1" />
<button type="submit">Add</button>
Expand Down
2 changes: 1 addition & 1 deletion examples/react/basic-default-search-params/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function RootComponent() {
Home
</Link>{' '}
<Link
to={'/posts'}
to="/posts"
activeProps={{
className: 'font-bold',
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function RootComponent() {
Home
</Link>{' '}
<Link
to={'/posts'}
to="/posts"
activeProps={{
className: 'font-bold',
}}
Expand Down
2 changes: 1 addition & 1 deletion examples/react/basic-file-based/src/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function RootComponent() {
Home
</Link>{' '}
<Link
to={'/posts'}
to="/posts"
activeProps={{
className: 'font-bold',
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function RootComponent() {
Home
</Link>{' '}
<Link
to={'/posts'}
to="/posts"
activeProps={{
className: 'font-bold',
}}
Expand Down
2 changes: 1 addition & 1 deletion examples/react/basic-react-query/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function RootComponent() {
Home
</Link>{' '}
<Link
to={'/posts'}
to="/posts"
activeProps={{
className: 'font-bold',
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function IndexComponent() {
<div className="p-2">
<h3>Welcome Home!</h3>
<p>Data: {data.date.getDate()}</p>
<Await promise={data.deferred} fallback={'Loading...'}>
<Await promise={data.deferred} fallback="Loading...">
{(data) => <p>Deferred: {data.date.getDate()}</p>}
</Await>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function RootComponent() {
Home
</Link>{' '}
<Link
to={'/posts'}
to="/posts"
activeProps={{
className: 'font-bold',
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function RootComponent() {
Home
</Link>{' '}
<Link
to={'/posts'}
to="/posts"
activeProps={{
className: 'font-bold',
}}
Expand Down
2 changes: 1 addition & 1 deletion examples/react/basic/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function RootComponent() {
Home
</Link>{' '}
<Link
to={'/posts'}
to="/posts"
activeProps={{
className: 'font-bold',
}}
Expand Down
2 changes: 1 addition & 1 deletion examples/react/deferred-data/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ function RootComponent() {
Home
</Link>{' '}
<Link
to={'/posts'}
to="/posts"
activeProps={{
className: 'font-bold',
}}
Expand Down
2 changes: 1 addition & 1 deletion examples/react/location-masking/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function RootComponent() {
Home
</Link>{' '}
<Link
to={'/photos'}
to="/photos"
activeProps={{
className: 'font-bold',
}}
Expand Down
2 changes: 1 addition & 1 deletion examples/react/navigation-blocking/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function RootComponent() {
Home
</Link>{' '}
<Link
to={'/editor-1'}
to="/editor-1"
activeProps={{
className: 'font-bold',
}}
Expand Down
2 changes: 1 addition & 1 deletion examples/react/quickstart-file-based/src/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function RootComponent() {
Home
</Link>{' '}
<Link
to={'/about'}
to="/about"
activeProps={{
className: 'font-bold',
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function RootComponent() {
Home
</Link>{' '}
<Link
to={'/about'}
to="/about"
activeProps={{
className: 'font-bold',
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function RootComponent() {
Home
</Link>{' '}
<Link
to={'/about'}
to="/about"
activeProps={{
className: 'font-bold',
}}
Expand Down
2 changes: 1 addition & 1 deletion examples/react/start-basic-auth/app/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function RootDocument({ children }: { children: React.ReactNode }) {
Home
</Link>{' '}
<Link
to={'/posts'}
to="/posts"
activeProps={{
className: 'font-bold',
}}
Expand Down
4 changes: 2 additions & 2 deletions examples/react/start-basic-react-query/app/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ function RootDocument({ children }: { children: React.ReactNode }) {
Home
</Link>{' '}
<Link
to={'/posts'}
to="/posts"
activeProps={{
className: 'font-bold',
}}
>
Posts
</Link>{' '}
<Link
to={'/users'}
to="/users"
activeProps={{
className: 'font-bold',
}}
Expand Down
2 changes: 1 addition & 1 deletion examples/react/start-basic-rsc/app/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ function RootDocument({ children }: { children: React.ReactNode }) {
Home
</Link>{' '}
<Link
to={'/posts'}
to="/posts"
activeProps={{
className: 'font-bold',
}}
Expand Down
4 changes: 2 additions & 2 deletions examples/react/start-basic/app/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ function RootDocument({ children }: { children: React.ReactNode }) {
Home
</Link>{' '}
<Link
to={'/posts'}
to="/posts"
activeProps={{
className: 'font-bold',
}}
>
Posts
</Link>{' '}
<Link
to={'/users'}
to="/users"
activeProps={{
className: 'font-bold',
}}
Expand Down
2 changes: 1 addition & 1 deletion examples/react/start-clerk-basic/app/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function RootDocument({ children }: { children: React.ReactNode }) {
Home
</Link>{' '}
<Link
to={'/posts'}
to="/posts"
activeProps={{
className: 'font-bold',
}}
Expand Down
2 changes: 1 addition & 1 deletion examples/react/start-supabase-basic/app/routes/__root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ function RootDocument({ children }: { children: React.ReactNode }) {
Home
</Link>{' '}
<Link
to={'/posts'}
to="/posts"
activeProps={{
className: 'font-bold',
}}
Expand Down
2 changes: 1 addition & 1 deletion examples/react/with-framer-motion/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ const rootRoute = createRootRoute({
Home
</Link>{' '}
<Link
to={'/posts'}
to="/posts"
activeProps={{
className: 'font-bold',
}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function RootComponent() {
Home
</Link>{' '}
<Link
to={'/about'}
to="/about"
activeProps={{
className: 'font-bold',
}}
Expand Down

0 comments on commit d328172

Please sign in to comment.