Update pre-commit config

The prettier hook was missing a trailing slash so omitting css files.

Add a trailing space fix hook and fix issues.
This commit is contained in:
Calum Lind 2018-10-08 14:22:49 +01:00
parent 654e2af4e5
commit 20fa106b8b
12 changed files with 48 additions and 46 deletions

View File

@ -14,7 +14,7 @@ repos:
hooks:
- id: prettier
name: Fmt Prettier
files: "\\.(
files: "\\.(\
css\
|less\
|scss\
@ -35,8 +35,10 @@ repos:
name: Fix End-of-files
exclude_types: [javascript, css]
- id: mixed-line-ending
name: Fix Line-endings
name: Fix Line endings
args: [--fix=auto]
- id: trailing-whitespace
name: Fix Trailing whitespace
- id: flake8
name: Chk Flake8
additional_dependencies: