diff --git a/eslint.config.js b/eslint.config.js index fff4d26..0c1dc28 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -18,13 +18,13 @@ export default tseslint.config([ tseslint.configs.recommendedTypeChecked, reactHooks.configs['recommended-latest'], reactRefresh.configs.vite, - ...pluginRouter.configs["flat/recommended"] + pluginRouter.configs["flat/recommended"] ], languageOptions: { ecmaVersion: 2022, globals: globals.browser, parserOptions: { - project: "./tsconfig.json", + project: ["./tsconfig.json", "./tsconfig.app.json", "./tsconfig.lib.json", "./tsconfig.node.json"], tsconfigRootDir: import.meta.dirname } }, @@ -33,7 +33,13 @@ export default tseslint.config([ "react-refresh/only-export-components": [ "warn", { allowConstantExport: true } - ] + ], + "react/react-in-jsx-scope": "off" + }, + settings: { + react: { + version: "detect" + } } } ]); diff --git a/lib/component/button/Button.tsx b/lib/component/button/Button.tsx index eba83f0..07ffec3 100644 --- a/lib/component/button/Button.tsx +++ b/lib/component/button/Button.tsx @@ -22,7 +22,6 @@ export default function Button(props: ButtonProps){ className, //Rounding { - "rounded-none": rounding === "none", "rounded-sm": rounding === "sm", "rounded": rounding === "md", "rounded-lg": rounding === "lg", diff --git a/lib/component/input/file/DragAndDropFileInput.tsx b/lib/component/input/file/DragAndDropFileInput.tsx index 10c73ed..9724ea9 100644 --- a/lib/component/input/file/DragAndDropFileInput.tsx +++ b/lib/component/input/file/DragAndDropFileInput.tsx @@ -22,7 +22,7 @@ export default function DragAndDropFileInput({ useEffect(() => { onChange?.(file); - }, [ file ]); + }, [ file, onChange ]); return (