MaibornWolff / metric-gardener

BSD 3-Clause "New" or "Revised" License
5 stars 0 forks source link

import-grammars should format output using prettier #305

Closed clemens-mw closed 2 months ago

clemens-mw commented 3 months ago

one option could be: exec("npx prettier ./src/parser/config/nodeTypesConfig.json --write"); or use the API: https://prettier.io/docs/en/api.html

clemens-mw commented 3 months ago

I just thought about making import-grammars a npm run script instead of including this into the CLI of the parser?

ChristianHuehn commented 2 months ago

The idea in general is nice. But I would argue that the output doesn't have to be human readable. Most IDEs and Editors support this out of the box. I would rate this below low priority therefor I close it.