Skip to content

Commit

Permalink
wip: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewvolk committed Jan 30, 2024
1 parent 5ea0bf6 commit 4a92445
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 22 deletions.
6 changes: 0 additions & 6 deletions apps/docs/lib/utils.ts

This file was deleted.

4 changes: 1 addition & 3 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@
},
"dependencies": {
"@bigcommerce/reactant": "workspace:^",
"clsx": "^2.0.0",
"lucide-react": "^0.294.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"storybook": "^7.6.4",
"tailwind-merge": "^2.1.0"
"storybook": "^7.6.4"
},
"devDependencies": {
"@bigcommerce/catalyst-configs": "workspace:^",
Expand Down
3 changes: 1 addition & 2 deletions apps/docs/stories/NavigationMenu.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Badge } from '@bigcommerce/reactant/Badge';
import { cn } from '@bigcommerce/reactant/cn';
import {
NavigationMenu,
NavigationMenuCollapsed,
Expand All @@ -12,8 +13,6 @@ import {
import type { Meta, StoryObj } from '@storybook/react';
import { ChevronDown, MenuSquare, Search, ShoppingCart, User, XSquare } from 'lucide-react';

import { cn } from '~/lib/utils';

const meta = {
component: NavigationMenu,
tags: ['autodocs'],
Expand Down
4 changes: 1 addition & 3 deletions apps/docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
"jsx": "preserve",
"incremental": true,
"baseUrl": ".",
"paths": {
"~/lib/*": ["./lib/*"]
},
"paths": {},
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
},
"include": [
Expand Down
2 changes: 1 addition & 1 deletion packages/reactant/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"./package.json": "./package.json",
"./postcss-config": "./postcss.config.js",
"./tailwind-config": "./tailwind.config.js",
"./cs": "./src/utils/cs.ts",
"./cn": "./src/lib/utils.ts",
"./*": "./src/components/*/index.ts"
},
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions packages/reactant/src/components/Calendar/Calendar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as React from 'react';
import { DayPicker } from 'react-day-picker';

import { cn } from '~/lib/utils';

import { buttonVariants } from '../Button';

export type CalendarProps = React.ComponentProps<typeof DayPicker>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ElementRef, forwardRef } from 'react';

import { cn } from '~/lib/utils';

import { Input, InputProps } from '../Input';

export const FileChooser = forwardRef<ElementRef<'input'>, InputProps>(
Expand Down
1 change: 1 addition & 0 deletions packages/reactant/src/components/Form/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as FormPrimitive from '@radix-ui/react-form';
import { ComponentPropsWithRef, ElementRef, forwardRef } from 'react';

import { cn } from '~/lib/utils';

import { Label } from '../Label';

type ValidationPattern =
Expand Down
8 changes: 1 addition & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4a92445

Please sign in to comment.