Use `files:` over `types:` in pre-commit configuration (#2759)

See https://github.com/prettier/prettier/issues/2745
master
Anthony Sottile 2017-09-05 12:17:02 -07:00 committed by Christopher Chedeau
parent 9c4ec68afd
commit 4d68faf195
1 changed files with 2 additions and 1 deletions

View File

@ -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)$