Skip to content

Commit

Permalink
mod lint script
Browse files Browse the repository at this point in the history
  • Loading branch information
DexterStorey committed Oct 3, 2024
1 parent f207053 commit 2b8d6f3
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 14 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
8 changes: 4 additions & 4 deletions bin/commands/init.js
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion build.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/button.tsx
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
2 changes: 1 addition & 1 deletion src/components/form.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/components/label.tsx
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
2 changes: 1 addition & 1 deletion src/components/markdown.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/components/popover.tsx
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
2 changes: 1 addition & 1 deletion src/components/toggle.tsx
Original file line number Diff line number Diff line change
@@ -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',
Expand Down

0 comments on commit 2b8d6f3

Please sign in to comment.