feat: support tailwind config in typescript#242
Merged
francoismassart merged 1 commit intofrancoismassart:masterfrom May 12, 2023
Merged
Conversation
Update tailwindcss to 3.3.2, fix tests for classnames-order rule since tailwindcss changed the ordering function at v3.3.0.
Owner
|
👋 @quesabe
I'll run it against my current project for a last test prior to release. |
Owner
|
Looking good except that I had to update my project's dependency to:
I'm planning to release it this monday, if some users of the plugin want to try the beta version and provide feedback and it would be appreciated as well. Cheers |
|
I've tested this out and it works fine for me! Below are all of my tailwind related dependencies Edit: adding eslint & prettier dependencies too |
|
Also seems to be working properly for me IDE & CLI, alongside prettier as well. |
|
Thanks, @quesabe! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Support tailwind config written in typescript as well as other common extensions
Description
requireon tailwind config with theloadConfigfunction from tailwindcss package that supports typescript parsingresolveDefaultConfigPathfunction from tailwindcss package that looks for one of./tailwind.config.{js,cjs,mjs,ts}Fixes #228
Type of change
How Has This Been Tested?
In a any project with tailwindcss and eslint-plugin-tailwindcss that utilises a JS-based config:
theme: {colors: {blueish:#0000aa}};text-blueishin my case);no-custom-classnamein my case);tsextension;package.jsonto the local repo checked out from this branch;Checklist: