Skip to content

Commit d2a3a99

Browse files
committed
lint
1 parent 50e1c10 commit d2a3a99

File tree

9 files changed

+30
-26
lines changed

9 files changed

+30
-26
lines changed

packages/render/integrations/integrations.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import path from 'node:path';
21
import child_process from 'node:child_process';
32
import http from 'node:http';
3+
import path from 'node:path';
44
import * as playwright from 'playwright';
55
import shell from 'shelljs';
66

packages/render/integrations/nextjs/app/layout.tsx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
import type { Metadata } from "next";
2-
import { Geist, Geist_Mono } from "next/font/google";
3-
import "./globals.css";
1+
import type { Metadata } from 'next';
2+
import { Geist, Geist_Mono } from 'next/font/google';
3+
import './globals.css';
44

55
const geistSans = Geist({
6-
variable: "--font-geist-sans",
7-
subsets: ["latin"],
6+
variable: '--font-geist-sans',
7+
subsets: ['latin'],
88
});
99

1010
const geistMono = Geist_Mono({
11-
variable: "--font-geist-mono",
12-
subsets: ["latin"],
11+
variable: '--font-geist-mono',
12+
subsets: ['latin'],
1313
});
1414

1515
export const metadata: Metadata = {
16-
title: "Create Next App",
17-
description: "Generated by create next app",
16+
title: 'Create Next App',
17+
description: 'Generated by create next app',
1818
};
1919

2020
export default function RootLayout({

packages/render/integrations/nextjs/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client';
22

3-
import { useEffect, useState } from "react";
43
import { render } from '@react-email/render';
4+
import { useEffect, useState } from 'react';
55

66
export default function Home() {
77
const [html, setHtml] = useState('');

packages/render/integrations/nextjs/next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { NextConfig } from "next";
1+
import type { NextConfig } from 'next';
22

33
const nextConfig: NextConfig = {
44
/* config options here */
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const config = {
2-
plugins: ["@tailwindcss/postcss"],
2+
plugins: ['@tailwindcss/postcss'],
33
};
44

55
export default config;

packages/render/integrations/vite/eslint.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import js from '@eslint/js'
2-
import globals from 'globals'
3-
import reactHooks from 'eslint-plugin-react-hooks'
4-
import reactRefresh from 'eslint-plugin-react-refresh'
5-
import tseslint from 'typescript-eslint'
1+
import js from '@eslint/js';
2+
import reactHooks from 'eslint-plugin-react-hooks';
3+
import reactRefresh from 'eslint-plugin-react-refresh';
4+
import globals from 'globals';
5+
import tseslint from 'typescript-eslint';
66

77
export default tseslint.config(
88
{ ignores: ['dist'] },
@@ -25,4 +25,4 @@ export default tseslint.config(
2525
],
2626
},
2727
},
28-
)
28+
);

packages/render/integrations/vite/src/App.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { useState, useEffect } from 'react';
21
import { render } from '@react-email/render';
2+
import { useEffect, useState } from 'react';
33

44
function App() {
55
const [html, setHtml] = useState('');
@@ -17,7 +17,11 @@ function App() {
1717
}, []);
1818

1919
if (error) {
20-
return <pre data-testid="rendering-error" style={{ color: 'red' }}>{error}</pre>;
20+
return (
21+
<pre data-testid="rendering-error" style={{ color: 'red' }}>
22+
{error}
23+
</pre>
24+
);
2125
}
2226

2327
return <pre data-testid="rendered-html">{html}</pre>;
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { StrictMode } from 'react'
2-
import { createRoot } from 'react-dom/client'
3-
import App from './App'
1+
import { StrictMode } from 'react';
2+
import { createRoot } from 'react-dom/client';
3+
import App from './App';
44

55
createRoot(document.getElementById('root')!).render(
66
<StrictMode>
77
<App />
88
</StrictMode>,
9-
)
9+
);

packages/render/integrations/vite/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { defineConfig } from 'vite';
21
import react from '@vitejs/plugin-react';
2+
import { defineConfig } from 'vite';
33

44
export default defineConfig({
55
plugins: [react()],

0 commit comments

Comments
 (0)