From b3803162b47b12050c2cfd10c6abc384cd31195a Mon Sep 17 00:00:00 2001 From: Mattrixwv Date: Sat, 9 Aug 2025 19:09:49 -0400 Subject: [PATCH] Complete configuration for build --- eslint.config.js | 12 +++-- lib/component/button/Button.tsx | 1 - .../input/file/DragAndDropFileInput.tsx | 2 +- .../loading/spinner/RubberSpinner.tsx | 4 +- lib/index.ts | 11 +++++ lib/providers/theme/ThemeProvider.tsx | 5 +- lib/providers/toaster/ToasterProvider.tsx | 7 +-- lib/types/Loading.d.ts | 1 + package.json | 2 +- src/util/InputUtils.tsx | 5 +- src/util/LoadingUtils.tsx | 48 +++++++++++++++++++ tsconfig.json | 5 +- tsconfig.lib.json | 5 +- tsconfig.node.json | 1 + vite.config.ts | 29 +++++------ 15 files changed, 107 insertions(+), 31 deletions(-) create mode 100644 lib/index.ts 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 (