Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(shadcn): add Biome linter support to project initialization #6883

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marcelbaklouti
Copy link

Description

Add a new option to the init command to allow users to choose between ESLint (default) and Biome as their linter during project initialization.

Closes #6882

Implementation

  • Added a linter option to the initOptionsSchema with eslint as the default
  • Added a new --linter CLI option to specify the linter choice
  • Created helper functions to remove ESLint configs and set up Biome
  • Enhanced the monorepo support to properly handle the more complex ESLint setup
  • Added tests for the new functionality

Testing

  • Verified that all tests pass with pnpm --filter=shadcn test
  • Manually tested creating new projects with ESLint (default)
  • Manually tested creating new projects with Biome
  • Verified that Biome is correctly set up in both standard and monorepo projects

- Added support for selecting Biome as an alternative linter during project creation
- Implemented linter configuration options in init command and project creation
- Created utility functions to handle Biome setup and ESLint configuration removal
- Updated configuration schemas and test fixtures to include linter option
- Introduced new linter utility module for managing linter-related operations
Copy link

vercel bot commented Mar 7, 2025

@marcelbaklouti is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems like the pnpm format:write ignored this file and instead applied my formating rules -.-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feat]: Add linter choice (ESLint/Biome) option during initialization
1 participant