EPMatt / reviewdog-action-prettier

Run Prettier with reviewdog :dog:
MIT License
23 stars 10 forks source link

Support projects without a 'package.json' #59

Open bryant-finney opened 11 months ago

bryant-finney commented 11 months ago

Problem Statement

prettier supports many languages other than JavaScript (YAML, Markdown, JSON, HTML, etc.). Integrations with tools such as pre-commit or vscode make it convenient to use prettier in repositories that don't depend on node.js or define a package.json.

However, this action fails if package.json does not exist in the repository.

Example

See https://github.com/bryant-finney/demo-reviewdog-action-prettier/pull/1: