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 b240fb1
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 6 deletions.
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
10 changes: 10 additions & 0 deletions apps/docs/vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import path from 'path';
import { defineConfig } from 'vite';

export default defineConfig({
resolve: {
alias: {
'~': path.resolve(__dirname, './'),
},
},
});
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

0 comments on commit b240fb1

Please sign in to comment.