fix(prettierd): respect `prettier` config field in the "package.json" (#564)
* fix: make `prettierd` respect the `prettier` config in the "package.json"
* add type annotations for `read_json`
Co-authored-by: Steven Arcangeli <506791+stevearc@users.noreply.github.com>
* fixup filename
* use `json` module for json decode
* refactor `read_json(` to respect syntax errors
...and throw an exception if a file open error occurs
* fixup test module label
* refactor: general touchups
---------
Co-authored-by: Ruslan Hrabovyi <ruslan.hrabovyi@ligadigital.com>
Co-authored-by: Steven Arcangeli <506791+stevearc@users.noreply.github.com>