EPMatt / reviewdog-action-prettier

Run Prettier with reviewdog :dog:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support projects without a 'package.json'

bryant-finney opened this issue · comments

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 bryant-finney/demo-reviewdog-action-prettier#1: