diff --git a/CHANGELOG.md b/CHANGELOG.md index df9ab94..3b8a226 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,4 @@ +- [2024-10-03] [mod lint script](https://github.com/RubricLab/ui/commit/adbe50b8b4cd0696a9530a079090152517234122) - [2024-10-02] [format, lint](https://github.com/RubricLab/ui/commit/c63735f98ceded961f2f4cb601111afb6b8c5e03) - [2024-10-02] [refactor to new biome](https://github.com/RubricLab/ui/commit/8d2aeca6c0ae824b8bcf1f85a7bd1fecda84180e) - [2024-10-02] [Again again](https://github.com/RubricLab/ui/commit/ad0f01623966ed33b238a56e1726d89e3e1ed029) diff --git a/bin/commands/init.js b/bin/commands/init.js index f047a15..0f998b1 100644 --- a/bin/commands/init.js +++ b/bin/commands/init.js @@ -1,9 +1,9 @@ -import { Command } from 'commander' -import prompts from 'prompts' -import { existsSync, promises as fs } from 'node:fs' -import { resolve, dirname, relative } from 'node:path' +import { promises as fs, existsSync } from 'node:fs' +import { dirname, relative, resolve } from 'node:path' import { fileURLToPath } from 'node:url' import chalk from 'chalk' +import { Command } from 'commander' +import prompts from 'prompts' const __filename = fileURLToPath(import.meta.url) const __dirname = dirname(__filename) diff --git a/build.ts b/build.ts index bf49013..d98dd69 100644 --- a/build.ts +++ b/build.ts @@ -1,4 +1,4 @@ -import { rm, rename, readdir } from 'node:fs/promises' +import { readdir, rename, rm } from 'node:fs/promises' import path from 'node:path' const outdir = './dist' diff --git a/package.json b/package.json index 1e49673..20e88b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@rubriclab/ui", - "version": "5.0.11", + "version": "5.0.12", "main": "dist/index.js", "types": "src/index.ts", "description": "UI package by Rubric Labs", @@ -12,8 +12,8 @@ "prepare": "bun x simple-git-hooks", "bleed": "bun x npm-check-updates -u && bun i", "format": "bun x biome format --write .", - "lint": "bun x biome check .", - "lint:fix": "bun x biome lint . --write --unsafe", + "lint": "bun x biome check . && bun x biome lint .", + "lint:fix": "bun x biome check --fix --unsafe . && bun x biome lint --write --unsafe .", "clean": "rm -rf .next && rm -rf node_modules" }, "bin": { diff --git a/src/components/button.tsx b/src/components/button.tsx index a7bba46..a934e17 100644 --- a/src/components/button.tsx +++ b/src/components/button.tsx @@ -1,6 +1,6 @@ 'use client' -import { forwardRef, type ButtonHTMLAttributes, type ReactNode } from 'react' +import { type ButtonHTMLAttributes, type ReactNode, forwardRef } from 'react' import { cn } from '../utils/cn' import { Loading } from './loading' diff --git a/src/components/form.tsx b/src/components/form.tsx index 897ceb4..220e31e 100644 --- a/src/components/form.tsx +++ b/src/components/form.tsx @@ -1,8 +1,8 @@ 'use client' -import { forwardRef, createContext, useContext, useId } from 'react' import type * as LabelPrimitive from '@radix-ui/react-label' import { Slot } from '@radix-ui/react-slot' +import { createContext, forwardRef, useContext, useId } from 'react' import { Controller, type ControllerProps, diff --git a/src/components/label.tsx b/src/components/label.tsx index 6253782..0830e39 100644 --- a/src/components/label.tsx +++ b/src/components/label.tsx @@ -1,7 +1,7 @@ 'use client' -import { forwardRef } from 'react' import * as LabelPrimitive from '@radix-ui/react-label' +import { forwardRef } from 'react' import { cn } from '../utils/cn' diff --git a/src/components/markdown.tsx b/src/components/markdown.tsx index c8c39a7..994ad2c 100644 --- a/src/components/markdown.tsx +++ b/src/components/markdown.tsx @@ -1,8 +1,8 @@ 'use client' import MarkdownJSX from 'markdown-to-jsx' -import { cn } from '../utils/cn' import { forwardRef } from 'react' +import { cn } from '../utils/cn' const Markdown = forwardRef< HTMLDivElement, diff --git a/src/components/popover.tsx b/src/components/popover.tsx index 0476fc2..dadc621 100644 --- a/src/components/popover.tsx +++ b/src/components/popover.tsx @@ -1,7 +1,7 @@ 'use client' -import { forwardRef } from 'react' import * as PopoverPrimitive from '@radix-ui/react-popover' +import { forwardRef } from 'react' import { cn } from '../utils/cn' diff --git a/src/components/toggle.tsx b/src/components/toggle.tsx index 75411dc..44f42e7 100644 --- a/src/components/toggle.tsx +++ b/src/components/toggle.tsx @@ -1,8 +1,8 @@ 'use client' import * as TogglePrimitive from '@radix-ui/react-toggle' -import { cn } from '../utils/cn' import { forwardRef } from 'react' +import { cn } from '../utils/cn' const sizes = { small: 'size-5 text-xs',