From 84eca45e35cafb56b597f0b07412f4faf2f1050b Mon Sep 17 00:00:00 2001 From: Kevin Satria D <130447401+kevinnsd1@users.noreply.github.com> Date: Wed, 20 May 2026 10:42:57 +0700 Subject: [PATCH] feat: initialize project with React 19, TypeScript, and Tailwind CSS v4 support --- .gitignore | 25 + eslint.config.js | 28 + index.html | 2 +- package-lock.json | 3859 ++++++++++++++++++++++++++++++++++++ package.json | 12 +- src/{App.jsx => App.tsx} | 10 +- src/{main.jsx => main.tsx} | 4 +- tsconfig.app.json | 25 + tsconfig.json | 7 + tsconfig.node.json | 23 + vite.config.js | 11 - 11 files changed, 3985 insertions(+), 21 deletions(-) create mode 100644 .gitignore create mode 100644 eslint.config.js create mode 100644 package-lock.json rename src/{App.jsx => App.tsx} (94%) rename src/{main.jsx => main.tsx} (65%) create mode 100644 tsconfig.app.json create mode 100644 tsconfig.json create mode 100644 tsconfig.node.json delete mode 100644 vite.config.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9bbc538 --- /dev/null +++ b/.gitignore @@ -0,0 +1,25 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +# Node +node_modules/ +dist/ +dist-ssr/ +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..295dcdc --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,28 @@ +import js from '@eslint/js' +import globals from 'globals' +import reactHooks from 'eslint-plugin-react-hooks' +import reactRefresh from 'eslint-plugin-react-refresh' +import tseslint from 'typescript-eslint' + +export default tseslint.config( + { ignores: ['dist'] }, + { + extends: [js.configs.recommended, ...tseslint.configs.recommended], + files: ['**/*.{ts,tsx}'], + languageOptions: { + ecmaVersion: 2020, + globals: globals.browser, + }, + plugins: { + 'react-hooks': reactHooks, + 'react-refresh': reactRefresh, + }, + rules: { + ...reactHooks.configs.recommended.rules, + 'react-refresh/only-export-components': [ + 'warn', + { allowConstantExport: true }, + ], + }, + } +) diff --git a/index.html b/index.html index 96bcdf2..2f00e3f 100644 --- a/index.html +++ b/index.html @@ -14,6 +14,6 @@
- +