lsdsjy / prettier-plugin-stylus

Prettier plugin for Stylus.
17 stars 2 forks source link

Please add the support for object/hash #10

Closed Nixie24 closed 11 months ago

Nixie24 commented 11 months ago

Please add the support for object/hash.I really need it. I can't understand the functions of "child" and "children" in src/index.ts, so I can't contribute codes.

lsdsjy commented 11 months ago

Hi! child and children are related to a concept named path in prettier. You can learn more about it in this post: https://medium.com/@fvictorio/how-to-write-a-plugin-for-prettier-a0d98c845e70

Nixie24 commented 11 months ago

Though I'm not a native English speaker, and I had some problems reading the passage, I finally add the support for Object/hash and Member.

lsdsjy commented 11 months ago

That's excellent! Would really appreciate it if you open a PR to this repo.

Nixie24 commented 11 months ago

I've already open the PR. #11

lsdsjy commented 11 months ago

Thanks! prettier-plugin-stylus@0.1.0