Skip to content

Commit c785da8

Browse files
committed
chore(client): Install Prettier
- Add `.prettierrc` file with single quote and JSX single quote setting
1 parent 601359d commit c785da8

File tree

4 files changed

+21
-13
lines changed

4 files changed

+21
-13
lines changed

client/.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Ignore artifacts:
2+
build
3+
coverage

client/.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"jsxSingleQuote": true
4+
}

client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"eslint-plugin-react-hooks": "^5.0.0",
2323
"eslint-plugin-react-refresh": "^0.4.18",
2424
"globals": "^15.14.0",
25+
"prettier": "3.4.2",
2526
"typescript": "~5.7.2",
2627
"typescript-eslint": "^8.22.0",
2728
"vite": "^6.1.0"

client/src/App.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
1-
import { useState } from 'react'
2-
import reactLogo from './assets/react.svg'
3-
import viteLogo from '/vite.svg'
4-
import './App.css'
1+
import { useState } from 'react';
2+
import reactLogo from './assets/react.svg';
3+
import viteLogo from '/vite.svg';
4+
import './App.css';
55

66
function App() {
7-
const [count, setCount] = useState(0)
7+
const [count, setCount] = useState(0);
88

99
return (
1010
<>
1111
<div>
12-
<a href="https://vite.dev" target="_blank">
13-
<img src={viteLogo} className="logo" alt="Vite logo" />
12+
<a href='https://vite.dev' target='_blank'>
13+
<img src={viteLogo} className='logo' alt='Vite logo' />
1414
</a>
15-
<a href="https://react.dev" target="_blank">
16-
<img src={reactLogo} className="logo react" alt="React logo" />
15+
<a href='https://react.dev' target='_blank'>
16+
<img src={reactLogo} className='logo react' alt='React logo' />
1717
</a>
1818
</div>
1919
<h1>Vite + React</h1>
20-
<div className="card">
20+
<div className='card'>
2121
<button onClick={() => setCount((count) => count + 1)}>
2222
count is {count}
2323
</button>
2424
<p>
2525
Edit <code>src/App.tsx</code> and save to test HMR
2626
</p>
2727
</div>
28-
<p className="read-the-docs">
28+
<p className='read-the-docs'>
2929
Click on the Vite and React logos to learn more
3030
</p>
3131
</>
32-
)
32+
);
3333
}
3434

35-
export default App
35+
export default App;

0 commit comments

Comments
 (0)