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

Add prettier plugin support for Gherkin #2157

Closed
jjorgenson-aya opened this issue Nov 20, 2023 · 2 comments
Closed

Add prettier plugin support for Gherkin #2157

jjorgenson-aya opened this issue Nov 20, 2023 · 2 comments

Comments

@jjorgenson-aya
Copy link

jjorgenson-aya commented Nov 20, 2023

🤔 What's the problem you're trying to solve?

To help enforce style standards, prettier is often used for files like TypeScript, PHP, etc. Having (official) support for Gherkin would be beneficial for git hooks.

✨ What's your proposed solution?

Add plugin for Prettier that formats Gherkin.

⛏ Have you considered any alternatives or workarounds?

Current formatters seem to only be supported through VSCode or Monaco.
This prettier plugin seems limited in options if you want slightly different configurations.

📚 Any additional context?


This text was originally generated from a template, then edited by hand. You can modify the template here.

@binhtran432k
Copy link
Member

Does an implementation of a Prettier plugin for Gherkin already exist, such as the one found at https://github.com/mapado/prettier-plugin-gherkin?

@luke-hill
Copy link
Contributor

Some of these plugins are very subjective. Each to their own - and each language will likely "bleed over" some of their thoughts to their language equivalent feature files.

I would encourage you to use whichever one/s make most sense to you, there are a few out there as linked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

3 participants