Skip to content

Fix prettier in pre-commit #1001

Description

@japsu

The pre-commit plugin for prettier is unmaintained and clashed with our modern prettier. I tried to replace it with calling prettier directly, but it by default also scans generated files etc. our previous conf ignored. Can't be assed to fix this right now

  [INFO] This may take a few minutes...
  ruff check...............................................................Passed
  ruff format..............................................................Passed
  fix end of files.........................................................Passed
  trim trailing whitespace.................................................Passed
  prettier.................................................................Failed
  - hook id: prettier
  - exit code: 1
  Checking formatting...
  [warn] kompassi-v2-frontend/src/__generated__/graphql.ts
  [warn] Code style issues found in the above file. Run Prettier with --write to fix.
  Checking formatting...
  All matched files use Prettier code style!
  Checking formatting...
  All matched files use Prettier code style!
  Checking formatting...
  [warn] kompassi-v2-frontend/src/__generated__/index.ts
  [warn] kompassi-v2-frontend/src/__generated__/gql.ts
  [warn] Code style issues found in 2 files. Run Prettier with --write to fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status
    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions