You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are encountering a compatibility issue where certain Prettier plugins must be able to precede the Tailwind CSS plugin without losing functionality or disabling Tailwind. This compatibility is crucial for maintaining our project's code formatting standards and utility functionality.
Affected Plugins
@softonus/prettier-plugin-duplicate-remover
@softonus/prettier-plugin-whitespace-remover
Desired Outcome
The desired outcome is for these plugins to function correctly when placed before the Tailwind CSS plugin in the Prettier configuration file. This would allow for better flexibility in managing code formatting and style consistency.
Current Behavior
When these plugins are placed before the Tailwind plugin: They do not function as expected.
When placed after the Tailwind plugin: They lead to the Tailwind plugin being disabled.
Steps to Reproduce
Set up a project with Prettier and Tailwind CSS.
Install and configure the aforementioned plugins in the .prettierrc file.
Arrange the plugins before the Tailwind CSS plugin and attempt to format the files.
Observe the lack of expected functionality from the plugins.
Suggested Solution
Investigate potential changes or enhancements in the plugin architecture or initialization sequence that would allow these plugins to operate effectively when configured before the Tailwind CSS plugin. This might involve modifications to how plugins are loaded or processed by Prettier when working with CSS frameworks like Tailwind.
Beneficial Side Effect:
Implementing this change will also have the added advantage of negating the need for the Tailwind plugin to include its own duplicate and whitespace remover functionalities. This would not only streamline the Tailwind plugin but also reduce redundancy and potential conflicts between these utilities.
We appreciate your consideration and any efforts to enhance the compatibility of these tools, which are crucial for our development workflows.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Description
We are encountering a compatibility issue where certain Prettier plugins must be able to precede the Tailwind CSS plugin without losing functionality or disabling Tailwind. This compatibility is crucial for maintaining our project's code formatting standards and utility functionality.
Affected Plugins
@softonus/prettier-plugin-duplicate-remover
@softonus/prettier-plugin-whitespace-remover
Desired Outcome
The desired outcome is for these plugins to function correctly when placed before the Tailwind CSS plugin in the Prettier configuration file. This would allow for better flexibility in managing code formatting and style consistency.
Current Behavior
Steps to Reproduce
.prettierrc
file.Suggested Solution
Investigate potential changes or enhancements in the plugin architecture or initialization sequence that would allow these plugins to operate effectively when configured before the Tailwind CSS plugin. This might involve modifications to how plugins are loaded or processed by Prettier when working with CSS frameworks like Tailwind.
Beneficial Side Effect:
Implementing this change will also have the added advantage of negating the need for the Tailwind plugin to include its own duplicate and whitespace remover functionalities. This would not only streamline the Tailwind plugin but also reduce redundancy and potential conflicts between these utilities.
We appreciate your consideration and any efforts to enhance the compatibility of these tools, which are crucial for our development workflows.
Beta Was this translation helpful? Give feedback.
All reactions