Skip to content

Commit

Permalink
Setting project
Browse files Browse the repository at this point in the history
  • Loading branch information
chanwoo00106 committed Oct 20, 2022
1 parent fc9a776 commit a31149c
Show file tree
Hide file tree
Showing 9 changed files with 1,656 additions and 144 deletions.
31 changes: 31 additions & 0 deletions pokemon/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"root": true,
"env": {
"es2021": true,
"node": true,
"browser": false
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"ignorePatterns": ["node_modules/**", "**/dist/**"],
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/consistent-type-imports": "error"
}
}
9 changes: 9 additions & 0 deletions pokemon/.prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"arrowParens": "avoid",
"singleQuote": true,
"bracketSpacing": true,
"endOfLine": "lf",
"semi": false,
"tabWidth": 2,
"trailingComma": "none"
}
7 changes: 6 additions & 1 deletion pokemon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@
"devDependencies": {
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"@typescript-eslint/eslint-plugin": "^5.40.1",
"@typescript-eslint/parser": "^5.40.1",
"@vitejs/plugin-react": "^2.1.0",
"eslint": "^8.25.0",
"eslint-config-prettier": "^8.5.0",
"prettier": "^2.7.1",
"typescript": "^4.6.4",
"vite": "^3.1.0"
}
}
}
41 changes: 0 additions & 41 deletions pokemon/src/App.css

This file was deleted.

31 changes: 1 addition & 30 deletions pokemon/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,34 +1,5 @@
import { useState } from 'react'
import reactLogo from './assets/react.svg'
import './App.css'

function App() {
const [count, setCount] = useState(0)

return (
<div className="App">
<div>
<a href="https://vitejs.dev" target="_blank">
<img src="/vite.svg" className="logo" alt="Vite logo" />
</a>
<a href="https://reactjs.org" target="_blank">
<img src={reactLogo} className="logo react" alt="React logo" />
</a>
</div>
<h1>Vite + React</h1>
<div className="card">
<button onClick={() => setCount((count) => count + 1)}>
count is {count}
</button>
<p>
Edit <code>src/App.tsx</code> and save to test HMR
</p>
</div>
<p className="read-the-docs">
Click on the Vite and React logos to learn more
</p>
</div>
)
return <div className="App">hello world</div>
}

export default App
1 change: 0 additions & 1 deletion pokemon/src/assets/react.svg

This file was deleted.

70 changes: 0 additions & 70 deletions pokemon/src/index.css

This file was deleted.

1 change: 0 additions & 1 deletion pokemon/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App'
import './index.css'

ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
<React.StrictMode>
Expand Down
Loading

0 comments on commit a31149c

Please sign in to comment.