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

doesn't preserve comments #6

Open
ezpuzz opened this issue Nov 12, 2018 · 1 comment
Open

doesn't preserve comments #6

ezpuzz opened this issue Nov 12, 2018 · 1 comment

Comments

@ezpuzz
Copy link

ezpuzz commented Nov 12, 2018

this removes comments because js-yaml 2.x doesn't create AST.

js-yaml does have a 1.x branch that creates AST but doesn't have dump function implemented

nodeca/js-yaml#282

I wanted to use this plugin in conjunction with lint-staged for the record (to keep yaml files sorted similarly in repo) and this is deal-breaker.

@kivagant-ba
Copy link

Very useful tool. Would be nice to preserve comments.

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

No branches or pull requests

2 participants