Skip to content

[bug]: Tailwind CSS class ordering violations in sidebar-16.tsx component #8203

@Nel4Nelson

Description

@Nel4Nelson

Describe the bug

The sidebar-16.tsx component in the registry contains multiple Tailwind CSS class ordering violations that trigger ESLint errors. The component has over 20 instances where classes don't follow the project's established ordering convention enforced by the eslint(tailwindcss/classnames-order) rule. This creates linting errors in development environments and prevents clean builds in strict CI/CD pipelines.

I intend to submit a PR to fix this by running ESLint auto-fix to reorder all classes according to the project's standards.

Affected component/components

Sidebar

How to reproduce

  1. Navigate to /apps/www/registry/new-york/v0/sidebar-16.tsx
  2. Open the file in VS Code or run ESLint on the file
  3. Observe multiple tailwindcss/classnames-order errors in the Problems panel
  4. Errors appear on lines 270, 271, 282, 297, 304, 314, 318, 328, 332, 342, 346, and many others

Codesandbox/StackBlitz link

No response

Logs

Invalid Tailwind CSS classnames order. eslint(tailwindcss/classnames-order) [Ln 270, Col 15]
Invalid Tailwind CSS classnames order. eslint(tailwindcss/classnames-order) [Ln 271, Col 14]
Invalid Tailwind CSS classnames order. eslint(tailwindcss/classnames-order) [Ln 282, Col 18]
Invalid Tailwind CSS classnames order. eslint(tailwindcss/classnames-order) [Ln 297, Col 29]
Missing "key" prop for element in iterator. eslint(react/jsx-key) [Ln 362, Col 25]
Invalid Tailwind CSS classnames order. eslint(tailwindcss/classnames-order) [Ln 364, Col 32]

System Info

Ubuntu, Brave Browser

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions