Skip to content
This repository was archived by the owner on Aug 17, 2025. It is now read-only.

Commit cdd0a83

Browse files
committed
- Fixed Eslint setup
- Improved ladle provider - Started building multi-use Button component - Updated Theme System - Added previously missing semicolons to all files
1 parent bd00f27 commit cdd0a83

File tree

127 files changed

+3068
-2557
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+3068
-2557
lines changed

.ladle/components.tsx

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
1+
import "@/App.css";
2+
import type { GlobalProvider } from "@ladle/react";
3+
import { Provider as StoreProvider } from "react-redux";
4+
import { store } from "@/store";
5+
import { ThemeProvider } from "@/features/theme";
16

2-
import "../src/App.css"
3-
import type { StoryDefault } from "@ladle/react"
4-
import React from "react"
5-
import { Provider } from 'react-redux'
6-
import { store } from "../src/store"
7-
8-
export default {
9-
decorators: [
10-
(Story: React.FC) => (
11-
<Provider store={store}>
12-
<Story />
13-
</Provider>
14-
)
15-
]
16-
} satisfies StoryDefault
7+
export const Provider: GlobalProvider = ({
8+
children,
9+
}: {
10+
children: React.ReactNode;
11+
}) => (
12+
<>
13+
<StoreProvider store={store}>
14+
<ThemeProvider>{children}</ThemeProvider>
15+
</StoreProvider>
16+
</>
17+
);

eslint.config.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
import { defineConfig } from "eslint/config";
2-
import globals from "globals";
3-
import js from "@eslint/js";
1+
import { defineConfig, globalIgnores } from "eslint/config";
2+
import eslint from "@eslint/js";
43
import tseslint from "typescript-eslint";
5-
import pluginReact from "eslint-plugin-react";
4+
import reactPlugin from "eslint-plugin-react";
5+
import eslintConfigPrettier from "eslint-plugin-prettier/recommended";
6+
7+
const baseTsConfig = tseslint.config(
8+
eslint.configs.recommended,
9+
tseslint.configs.recommended
10+
);
611

712
export default defineConfig([
13+
globalIgnores(["node_modules/**", "build/**", "src-tauri/**"]),
14+
baseTsConfig,
815
{
9-
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
10-
languageOptions: { globals: globals.browser },
11-
},
12-
{
13-
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
14-
plugins: { js },
15-
extends: ["js/recommended"],
16-
},
17-
tseslint.configs.recommended,
18-
{
19-
...pluginReact.configs.flat.recommended,
20-
rules: {
21-
...pluginReact.configs.flat.recommended.rules,
22-
"react/react-in-jsx-scope": "off", // Disable the rule that requires React to be in scope in JSX
16+
...reactPlugin.configs.flat.recommended,
17+
settings: {
18+
react: {
19+
version: "detect",
20+
},
2321
},
2422
},
23+
reactPlugin.configs.flat["jsx-runtime"],
24+
eslintConfigPrettier,
2525
]);

eslint.config.mjs

Lines changed: 0 additions & 41 deletions
This file was deleted.

package-lock.json

Lines changed: 132 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"react-toastify": "^11.0.5",
4848
"remark-gfm": "^4.0.1",
4949
"reselect": "^5.1.1",
50+
"tinycolor2": "^1.6.0",
5051
"uuid": "^11.0.3"
5152
},
5253
"devDependencies": {
@@ -68,12 +69,16 @@
6869
"@types/node": "^22.10.1",
6970
"@types/react": "^18.3.20",
7071
"@types/react-dom": "^18.3.6",
72+
"@types/tinycolor2": "^1.4.6",
7173
"@vitejs/plugin-react": "^4.2.1",
7274
"@vitest/browser": "^3.1.2",
7375
"@vitest/coverage-v8": "^3.1.2",
7476
"@vitest/ui": "^3.1.2",
7577
"eslint": "^9.23.0",
76-
"eslint-plugin-react": "^7.37.4",
78+
"eslint-config-prettier": "^10.1.2",
79+
"eslint-plugin-prettier": "^5.2.6",
80+
"eslint-plugin-react": "^7.37.5",
81+
"eslint-plugin-react-hooks": "^5.2.0",
7782
"eslint-plugin-storybook": "^0.12.0",
7883
"globals": "^16.0.0",
7984
"husky": "^9.1.7",

setupTests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
import "@testing-library/jest-dom"
1+
import "@testing-library/jest-dom";

src/App.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
@import './assets/styles/base.css';
22
@import './assets/styles/inputs.css';
3-
@import './assets/styles/buttons.css';
43
@import './assets/styles/animations.css';

0 commit comments

Comments
 (0)