diff --git a/.eslintrc.cjs b/.eslintrc.cjs
index 10ed42f1..14acb10c 100644
--- a/.eslintrc.cjs
+++ b/.eslintrc.cjs
@@ -21,7 +21,7 @@ module.exports = {
plugins: ["react", "@typescript-eslint", "prettier"],
rules: {
"import/prefer-default-export": "off",
- "no-restricted-exports": ["error", {restrictDefaultExports: {direct: true}}],
+ "no-restricted-exports": ["error", { restrictDefaultExports: { direct: true } }],
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off",
"no-alert": "off",
@@ -39,6 +39,7 @@ module.exports = {
devDependencies: ["**/*.stories.tsx", "**/*.test.tsx", "**/*.test.ts"],
},
],
+ "react/jsx-props-no-spreading": "off",
},
overrides: [
{
@@ -56,13 +57,13 @@ module.exports = {
"no-restricted-exports": "off",
"react/jsx-props-no-spreading": "off",
"import/prefer-default-export": "off",
- }
+ },
},
{
files: ["src/util/class-names.tsx"],
rules: {
"import/no-extraneous-dependencies": "off",
- }
- }
+ },
+ },
],
};
diff --git a/src/components/button/button.stories.tsx b/src/components/button/button.stories.tsx
index f50c3c27..2f633cce 100644
--- a/src/components/button/button.stories.tsx
+++ b/src/components/button/button.stories.tsx
@@ -4,7 +4,7 @@ import { Button, ButtonProps } from "./button";
import { ChatIcon, DiagramTreeIcon, LockIcon } from "../../icons";
import { hiddenArgControl } from "../../util/storybook-utils";
-const types: ButtonProps["type"][] = [
+const variants: ButtonProps["variant"][] = [
"primary",
"secondary",
"minimal",
@@ -55,8 +55,8 @@ export const Types: Story = {
argTypes: { type: hiddenArgControl },
render: ({ children, ...args }) => (
- {types.map((type) => (
-