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

support detection of non .prettierrc config files #350

Open
exectx opened this issue Dec 5, 2024 · 0 comments
Open

support detection of non .prettierrc config files #350

exectx opened this issue Dec 5, 2024 · 0 comments
Labels
enhancement New feature or request pkg:add sv add

Comments

@exectx
Copy link

exectx commented Dec 5, 2024

When integrating Tailwind into an existing project that already has a prettier config file that isn't a .prettierrc , an incomplete .prettierrc file is generated.

The current implementation in prettier/index.ts and tailwindcss/index.ts should detect the existing prettier config file and use parseJson or parseScript in case the prettier config is for instance prettier.config.js.

repro: npx sv add tailwind on existing project with a prettier.config.js

Issue #285 is related but focuses mainly on monorepo setups.

@manuel3108 manuel3108 added enhancement New feature or request pkg:add sv add labels Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pkg:add sv add
Projects
None yet
Development

No branches or pull requests

2 participants