Skip to content

Commit

Permalink
Merge pull request #24 from the-collab-lab/tg/typescript
Browse files Browse the repository at this point in the history
Refactored project to Typescript
  • Loading branch information
tannaurus authored Aug 25, 2024
2 parents fc92917 + 42eb376 commit 6c259bf
Show file tree
Hide file tree
Showing 31 changed files with 875 additions and 298 deletions.
20 changes: 16 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:jsx-a11y/recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"env": {
Expand All @@ -12,12 +13,23 @@
"ecmaVersion": "latest",
"sourceType": "module"
},
"settings": { "react": { "version": "detect" } },
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"no-duplicate-imports": "warn",
"no-unused-vars": "warn",
"react/jsx-filename-extension": [1, { "allow": "as-needed" }],
"@typescript-eslint/no-unused-vars": "warn",
"react/jsx-filename-extension": [
1,
{
"allow": "as-needed",
"extensions": [".jsx", ".tsx"]
}
],
"react/prop-types": "off",
"react/jsx-no-target-blank": "off"
"react/jsx-no-target-blank": "off",
"react/jsx-uses-react": "error"
}
}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<link rel="icon" type="image/svg+xml" href="/src/favicon.ico" />
<meta name="color-scheme" content="dark light" />
<title>Smart Shopping List</title>
<script type="module" src="/src/index.jsx" async></script>
<script type="module" src="/src/index.tsx" async></script>
</head>
<body>
<div id="root"></div>
Expand Down
1 change: 1 addition & 0 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"jsx": "react",
"types": ["vitest/globals"]
}
}
Loading

0 comments on commit 6c259bf

Please sign in to comment.