Skip to content

Commit

Permalink
Migrate to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
tschumpr committed Jul 8, 2024
1 parent e4cbde3 commit c7e3ad7
Show file tree
Hide file tree
Showing 35 changed files with 1,133 additions and 446 deletions.
9 changes: 7 additions & 2 deletions src/Geopilot.Frontend/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ module.exports = {
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "react-refresh", "prettier"],
ignorePatterns: ["dist", ".eslintrc.cjs"],
parserOptions: { ecmaVersion: "latest", sourceType: "module" },
settings: { react: { version: "18.2" } },
plugins: ["react-refresh", "prettier"],
settings: { react: { version: "detect" } },
rules: {
"prettier/prettier": [
"error",
Expand All @@ -24,6 +27,8 @@ module.exports = {
},
],
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"react/display-name": "off",
},
};
2 changes: 1 addition & 1 deletion src/Geopilot.Frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,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 c7e3ad7

Please sign in to comment.