diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index f84edee4b..ed789b36a 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -1,6 +1,15 @@ -- id: prettier - name: prettier - entry: prettier --write - language: node - # From https://github.com/prettier/prettier/blob/7a7eb170/docs/index.md - files: \.(css|less|scss|ts|tsx|graphql|gql|json|js|jsx|md)$ +- id: prettier + name: prettier + entry: prettier --write + language: node + files: "\\.(\ + css|less|scss\ + |graphql|gql\ + |js|jsx\ + |json\ + |md|markdown|mdown|mkdn\ + |mdx\ + |ts|tsx\ + |vue\ + |yaml|yml\ + )$"