-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add third option for pugClassNotation and pugIdNotation #167
Comments
This will be extremely helpful when using Tailwind! Has this been started? Are there any pointers available for where to begin? |
It's kinda easy to start by adding the new option to the choices: plugin-pug/src/options/pug-class-notation.ts Lines 11 to 14 in a66432d
plugin-pug/src/options/pug-id-notation.ts Lines 11 to 14 in a66432d
And then add tests for the option in
From there you can then just try-and-error through the code with test-driven-development ^^ Just use |
@h0merjam The third choice should be And then your both function friends are here and below: https://github.com/prettier/plugin-pug/blob/main/src/printer.ts#L577
|
Hmm, this isn't quite as simple as I'd hoped! I've tried to grasp what's happening with the
Does this sound about right? 🤔 |
Yes that sounds right 👍 |
This will be a follow-up of #36, because this third option will need a bit more refactoring and is not quite as easy to implement as the other two options.
To let users already benefit from the other two options, we will create a release before starting working on this third option.
The text was updated successfully, but these errors were encountered: