Skip to content

Commit

Permalink
feat: port code to javascript (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shurtu-gal authored Feb 12, 2024
1 parent 3d32ebc commit 5daae06
Show file tree
Hide file tree
Showing 31 changed files with 525 additions and 1,882 deletions.
41 changes: 18 additions & 23 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react-hooks/recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
plugins: ['react-refresh'],
rules: {
'react-refresh/only-export-components': ['off', { allowConstantExport: true }],
'react/prop-types': 'off',
},
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['../tsconfig.json', '../tsconfig.node.json'],
tsconfigRootDir: './src',
},
settings: {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
plugins: ['react-refresh', 'jsdoc'],
rules: {
'react/jsx-no-target-blank': 'off',
'jsdoc/no-undefined-types': 1,
'react/prop-types': 'off',
'react-refresh/only-export-components': ['off', { allowConstantExport: true }],
},
settings: {
react: {
version: 'detect',
},
Expand Down
17 changes: 0 additions & 17 deletions components.json

This file was deleted.

4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sketch | UI</title>
<title>Reunion Website</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
28 changes: 9 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,47 +5,37 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"build": "vite build",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"format": "prettier --write --config .prettierrc --ignore-path .prettierignore ./src",
"prepare": "husky install"
},
"dependencies": {
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-slot": "^1.0.2",
"@reduxjs/toolkit": "^2.0.1",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"husky": "^9.0.10",
"lottie-web": "^5.12.2",
"lucide-react": "^0.314.0",
"prettier": "^3.2.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-redux": "^9.1.0",
"react-router-dom": "^6.21.3",
"react-stacked-toast": "^0.0.6",
"tailwind-merge": "^2.2.0",
"tailwindcss-animate": "^1.0.7"
"tailwind-merge": "^2.2.1"
},
"devDependencies": {
"@types/node": "^20.11.5",
"@types/react": "^18.2.43",
"@types/react-dom": "^18.2.17",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"@vitejs/plugin-react": "^4.2.1",
"@types/react": "^18.2.55",
"@types/react-dom": "^18.2.19",
"@vitejs/plugin-react-swc": "^3.5.0",
"autoprefixer": "^10.4.17",
"eslint": "^8.55.0",
"eslint": "^8.56.0",
"eslint-plugin-jsdoc": "^48.0.6",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.5",
"lint-staged": "^15.2.0",
"postcss": "^8.4.33",
"tailwindcss": "^3.4.1",
"typescript": "^5.2.2",
"vite": "^5.0.8"
"vite": "^5.1.0"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
Expand Down
Loading

0 comments on commit 5daae06

Please sign in to comment.