Skip to content

Commit

Permalink
Migrate project to typescript, minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ankith26 committed Dec 19, 2024
1 parent a2e38c4 commit 0cb9042
Show file tree
Hide file tree
Showing 28 changed files with 1,518 additions and 1,335 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Format with Prettier
run: |
cd frontend
prettier --write "**/*.{js,jsx,md,mdx,css,yaml}"
prettier --write "**/*.{js,jsx,ts,tsx,md,mdx,css,yaml}"
- uses: stefanzweifel/git-auto-commit-action@v5
with:
Expand Down
34 changes: 0 additions & 34 deletions frontend/.eslintrc.cjs

This file was deleted.

13 changes: 13 additions & 0 deletions frontend/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import globals from 'globals';
import pluginJs from '@eslint/js';
import tseslint from 'typescript-eslint';
import pluginReact from 'eslint-plugin-react';

/** @type {import('eslint').Linter.Config[]} */
export default [
{ files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'] },
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
];
2 changes: 1 addition & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading

0 comments on commit 0cb9042

Please sign in to comment.