No description
  • Astro 69.2%
  • TypeScript 18.3%
  • CSS 11.7%
  • JavaScript 0.8%
Find a file
2024-08-03 22:23:04 +09:00
src Init Commit 2024-08-03 22:23:04 +09:00
.eslintrc.cjs Init Commit 2024-08-03 22:23:04 +09:00
.gitignore Init Commit 2024-08-03 22:23:04 +09:00
bun.lockb Init Commit 2024-08-03 22:23:04 +09:00
declarations.d.ts Init Commit 2024-08-03 22:23:04 +09:00
index.html Init Commit 2024-08-03 22:23:04 +09:00
package.json Init Commit 2024-08-03 22:23:04 +09:00
postcss.config.js Init Commit 2024-08-03 22:23:04 +09:00
README.md Init Commit 2024-08-03 22:23:04 +09:00
tailwind.config.js Init Commit 2024-08-03 22:23:04 +09:00
tsconfig.app.json Init Commit 2024-08-03 22:23:04 +09:00
tsconfig.json Init Commit 2024-08-03 22:23:04 +09:00
tsconfig.node.json Init Commit 2024-08-03 22:23:04 +09:00
vite.config.ts Init Commit 2024-08-03 22:23:04 +09:00

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

  • Configure the top-level parserOptions property like this:
export default {
  // other rules...
  parserOptions: {
    ecmaVersion: 'latest',
    sourceType: 'module',
    project: ['./tsconfig.json', './tsconfig.node.json', './tsconfig.app.json'],
    tsconfigRootDir: __dirname,
  },
}
  • Replace plugin:@typescript-eslint/recommended to plugin:@typescript-eslint/recommended-type-checked or plugin:@typescript-eslint/strict-type-checked
  • Optionally add plugin:@typescript-eslint/stylistic-type-checked
  • Install eslint-plugin-react and add plugin:react/recommended & plugin:react/jsx-runtime to the extends list