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

Commit 9125bb4

Browse files
authored
fix: build storybook (#2)
* fix: removed ext from script * fix: removed tsconfig incompatible property * chore: fix eslint * chore: moved stories to examples/... * fix: build * chore: updated gitignore and prettierignore * chore: removed examples and added checker examples
1 parent a991e6f commit 9125bb4

Some content is hidden

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

63 files changed

+281
-1720
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@ dist-ssr
2424
*.sw?
2525

2626
.env
27-
storybook-static
27+
storybook-static
28+
mockServiceWorker.js

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
node_modules
22
dist
33
pnpm-lock.yaml
4+
mockServiceWorker.js
5+
storybook-static

eslint.config.js

+11-12
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,30 @@
1-
import js from "@eslint/js";
1+
import eslint from "@eslint/js";
22
import globals from "globals";
3-
import reactHooks from "eslint-plugin-react-hooks";
4-
import reactRefresh from "eslint-plugin-react-refresh";
53
import tseslint from "typescript-eslint";
64
import eslintConfigPrettier from "eslint-config-prettier";
75
import tailwind from "eslint-plugin-tailwindcss";
86

97
export default tseslint.config(
10-
{ ignores: ["dist"] },
8+
eslint.configs.recommended,
9+
...tseslint.configs.recommended, // .strict is a super set of recommended
10+
// ...tseslint.configs.strict,
11+
...tseslint.configs.stylistic,
12+
{ ignores: ["dist", "node_modules", "storybook-static"] },
1113
{
1214
extends: [
13-
js.configs.recommended,
15+
eslint.configs.recommended,
1416
...tseslint.configs.recommended,
1517
...tailwind.configs["flat/recommended"],
1618
],
17-
files: ["**/*.{ts,tsx}"],
1819
languageOptions: {
1920
ecmaVersion: 2020,
2021
globals: globals.browser,
2122
},
22-
plugins: {
23-
"react-hooks": reactHooks,
24-
"react-refresh": reactRefresh,
25-
},
2623
rules: {
27-
...reactHooks.configs.recommended.rules,
28-
"react-refresh/only-export-components": ["warn", { allowConstantExport: true }],
24+
"@typescript-eslint/no-unused-vars": "warn",
25+
"@typescript-eslint/no-non-null-assertion": "warn",
26+
"@typescript-eslint/no-explicit-any": "warn",
27+
"@typescript-eslint/consistent-type-definitions": "warn",
2928
},
3029
},
3130
eslintConfigPrettier,

lib/colors.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Meta, ColorPalette, ColorItem, Title } from "@storybook/blocks";
22
import { colors } from "./tokens/colors";
33

4-
<Meta title="Tokens/Colors" />
4+
<Meta title="Examples/Tokens/Colors" />
55

66
<Title>Color Palette</Title>
77

0 commit comments

Comments
 (0)