Skip to content

Commit

Permalink
fix(material-tailwind): version types issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammed-Rahif committed Jul 28, 2024
1 parent fd17a4f commit 4a810f4
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 12 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,17 @@ If you are developing a production application, we recommend updating the config
export default {
// other rules...
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json', './tsconfig.app.json'],
ecmaVersion: "latest",
sourceType: "module",
project: ["./tsconfig.json", "./tsconfig.node.json", "./tsconfig.app.json"],
tsconfigRootDir: __dirname,
},
}
};
```

- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list

https://github.com/creativetimofficial/material-tailwind/issues/528
https://github.com/creativetimofficial/material-tailwind/issues/427
15 changes: 11 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"homepage": "https://muhammed-rahif.github.io/The-Movieflix/",
"scripts": {
"dev": "vite --host",
"build": "vite build # tsc -b && vite build",
"build": "tsc -b && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"postinstall": "patch-package",
Expand Down Expand Up @@ -35,7 +35,7 @@
"@capacitor/cli": "^6.1.1",
"@tailwindcss/typography": "^0.5.13",
"@tanstack/eslint-plugin-query": "^5.51.12",
"@types/react": "^18.3.3",
"@types/react": "18.2.9",
"@types/react-dom": "^18.3.0",
"@types/react-transition-group": "^4.4.10",
"@typescript-eslint/eslint-plugin": "^7.15.0",
Expand Down
4 changes: 2 additions & 2 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { ReactElement } from "react";
import React from "react";
import { createRoot } from "react-dom/client";
import { ButtonStyleTypes, ThemeProvider } from "@material-tailwind/react";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
Expand All @@ -22,7 +22,7 @@ createRoot(document.getElementById("root")!).render(
<React.StrictMode>
<BrowserRouter basename="/">
<QueryClientProvider client={queryClient}>
<ThemeProvider value={theme}>{(<App />) as ReactElement}</ThemeProvider>
<ThemeProvider value={theme}>{(<App />) as any}</ThemeProvider>

{/* <ReactQueryDevtools buttonPosition="top-right" /> */}
</QueryClientProvider>
Expand Down

0 comments on commit 4a810f4

Please sign in to comment.