├── .eslintignore ├── .prettierignore ├── src ├── index.css └── main.jsx ├── .gitignore ├── .prettierrc ├── vite.config.js ├── index.html ├── .eslintrc.js ├── package.json └── public ├── favicon.svg └── logo.svg /.eslintignore: -------------------------------------------------------------------------------- 1 | dist -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | dist 2 | package-lock.json -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | h1 { 2 | color: red; 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | dist 4 | dist-ssr -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "useTabs": true, 3 | "semi": true, 4 | "singleQuote": true, 5 | "jsxSingleQuote": true, 6 | "trailingComma": "none", 7 | "arrowParens": "avoid" 8 | } 9 | -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- 1 | import { defineConfig } from 'vite'; 2 | import react from '@vitejs/plugin-react'; 3 | 4 | // https://vitejs.dev/config/ 5 | export default defineConfig({ 6 | plugins: [react()] 7 | }); 8 | -------------------------------------------------------------------------------- /src/main.jsx: -------------------------------------------------------------------------------- 1 | import { createRoot } from 'react-dom/client'; 2 | import './index.css'; 3 | 4 | const app = ; 5 | const container = document.getElementById('root'); 6 | 7 | createRoot(container).render(app); 8 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Vite App 8 | 9 | 10 |
11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | env: { 3 | browser: true, 4 | es2021: true 5 | }, 6 | settings: { 7 | react: { 8 | version: 'detect' 9 | } 10 | }, 11 | extends: [ 12 | 'plugin:react/recommended', 13 | 'plugin:react/jsx-runtime', 14 | 'standard', 15 | 'prettier' 16 | ], 17 | parserOptions: { 18 | ecmaFeatures: { 19 | jsx: true 20 | }, 21 | ecmaVersion: 'latest', 22 | sourceType: 'module' 23 | }, 24 | plugins: ['react'], 25 | rules: {} 26 | }; 27 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "first-project", 3 | "version": "0.0.0", 4 | "scripts": { 5 | "dev": "vite", 6 | "build": "vite build", 7 | "preview": "vite preview", 8 | "format": "prettier --write .", 9 | "lint": "eslint . --ext .js,.jsx --fix" 10 | }, 11 | "dependencies": { 12 | "react": "18.2.0", 13 | "react-dom": "18.2.0" 14 | }, 15 | "devDependencies": { 16 | "@vitejs/plugin-react": "2.2.0", 17 | "eslint": "8.26.0", 18 | "eslint-config-prettier": "8.5.0", 19 | "eslint-config-standard": "17.0.0", 20 | "eslint-plugin-import": "2.26.0", 21 | "eslint-plugin-n": "15.3.0", 22 | "eslint-plugin-promise": "6.1.1", 23 | "eslint-plugin-react": "7.31.10", 24 | "prettier": "2.7.1", 25 | "vite": "3.2.0" 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /public/favicon.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /public/logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | --------------------------------------------------------------------------------