Hook that updates files · Issue #532 · pre-commit/pre-commit · GitHub
Skip to content

Hook that updates files #532

Description

@awebdeveloper

I have created the following hook called prettier which formats js files.
https://github.com/awebdeveloper/pre-commit-prettier/blob/master/.pre-commit-hooks.yaml

When i try to commit a file (say my-oncogene.js in this case) i get file modified error. What Should i do.

hookid: prettier

Files were modified by this hook. Additional output:

asset/js/my-oncogene.js 41ms

looks like the pre-commit only passes if no file is modified.

I am on newer version of pre-commit 0.13

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions