Skip to content

Commit ca420fe

Browse files
authored
Improve vscode settings and component naming (#38)
* add prettier configs * rename components
1 parent 903f86d commit ca420fe

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

.vscode/extension.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"esbenp.prettier-vscode"
4+
]
5+
}

.vscode/settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@
44
"typescriptreact": false,
55
"css": false
66
},
7-
"github.copilot.inlineSuggest.enable": false
7+
"github.copilot.inlineSuggest.enable": false,
8+
"editor.formatOnSave": true,
9+
"editor.defaultFormatter": "esbenp.prettier-vscode"
810
}

src/components/App/App.tsx renamed to src/components/FriendRequestForm/FriendRequestForm.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { UserList } from '../UserList/UserList'
22

3-
import styles from './App.module.css'
3+
import styles from './FriendRequestForm.module.css'
44

5-
const App = () => {
5+
const FriendRequestForm = () => {
66
return (
77
<form className={styles.wrapper}>
88
<h2 className={styles.header}>友達リクエストの送信先を選択してください</h2>
@@ -18,4 +18,4 @@ const App = () => {
1818
)
1919
}
2020

21-
export { App }
21+
export { FriendRequestForm }

src/main.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import ReactDOM from 'react-dom'
33

44
import 'ress'
55

6-
import { App } from './components/App/App'
6+
import { FriendRequestForm } from './components/FriendRequestForm/FriendRequestForm'
77

88
ReactDOM.render(
99
<React.StrictMode>
10-
<App />
10+
<FriendRequestForm />
1111
</React.StrictMode>,
1212
document.getElementById('root'),
1313
)

0 commit comments

Comments
 (0)