From 4d68faf195bcbf1d3fc1627ffc149326b4db1c0b Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Tue, 5 Sep 2017 12:17:02 -0700 Subject: [PATCH] Use `files:` over `types:` in pre-commit configuration (#2759) See https://github.com/prettier/prettier/issues/2745 --- .pre-commit-hooks.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index d252abb3b75a..cfad872294b9 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -2,4 +2,5 @@ name: prettier entry: prettier --write language: node - types: [javascript] + # From https://github.com/prettier/prettier/blob/133303f47a30f6b3e46ffdf9d5c2d6609d65c416/src/options.js#L32-L42 + files: \.(css|less|scss|html|ts|tsx|graphql|gql|json|js|jsx)$