feat: migrate to TypeScript and support TailwindCSS v4#385
feat: migrate to TypeScript and support TailwindCSS v4#385ImBIOS wants to merge 4 commits intofrancoismassart:masterfrom
Conversation
Preparation to support TailwindCSS v4 requires me to migrate it to TS to protect my sane and peaceful mind
|
Please guys, |
we're only going to include `lib` in the npm packages, not the git repo
|
I think the v4 branch is https://github.com/francoismassart/eslint-plugin-tailwindcss/tree/alpha/v4-basic-files |
|
Can you show how to use it inside the eslint flat config? |
|
Amazing work. Any chance this will be merged soon? Anything I can help with? |
| }, | ||
| "dependencies": { | ||
| "@typescript-eslint/utils": "^7.13.0", | ||
| "eslint": "^8.56.0", |
There was a problem hiding this comment.
eslint should be a peer dep, right?
There was a problem hiding this comment.
Concur. Both @typescript-eslint/utils and eslint are used to import types. They can both be moved to devDependencies.
|
Thanks for this great work! Any news about this PR? |
|
@ImBIOS do you know if this will get merged soon? If not do you think you could create your own NPM package for people to use in the mean time? |
| */ | ||
| 'use strict'; | ||
|
|
||
| import { RuleModule } from '@typescript-eslint/utils/ts-eslint'; |
There was a problem hiding this comment.
| import { RuleModule } from '@typescript-eslint/utils/ts-eslint'; | |
| import { type RuleModule } from '@typescript-eslint/utils/ts-eslint'; |
feat: migrate to TypeScript and restructure project files
Description
Preparation to support TailwindCSS v4 requires me to migrate it to TS to protect my sane and peaceful mind
Fixes #384
Fixes #325
Related:
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Please also list any relevant details for your test configuration
Test Configuration:
Checklist: