From 9ed1b7ec84939e77ed6bbefe23555d9858deef3c Mon Sep 17 00:00:00 2001 From: Johannes Loher Date: Wed, 30 Dec 2020 23:05:57 +0100 Subject: [PATCH] add command to format all sources (except .hbs) --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index b42633d7..52a60eab 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "clean": "gulp clean && gulp link --clean", "update": "npm install --save-dev git+https://git.f3l.de/dungeonslayers/foundry-pc-types.git#f3l-fixes", "lint": "eslint 'src/**/*.ts' --cache", - "lint:fix": "eslint 'src/**/*.ts' --cache --fix" + "lint:fix": "eslint 'src/**/*.ts' --cache --fix", + "format": "prettier --write 'src/**/*.(ts|json|scss)'" }, "author": "", "license": "", @@ -45,7 +46,6 @@ }, "lint-staged": { "*.ts": "eslint --cache --fix", - "*.json": "prettier --write", - "*.scss": "prettier --write" + "*.(json|scss)": "prettier --write" } }