add command to format all sources (except .hbs)

This commit is contained in:
Johannes Loher 2020-12-30 23:05:57 +01:00
parent 2e7197a0a2
commit 9ed1b7ec84

View file

@ -11,7 +11,8 @@
"clean": "gulp clean && gulp link --clean", "clean": "gulp clean && gulp link --clean",
"update": "npm install --save-dev git+https://git.f3l.de/dungeonslayers/foundry-pc-types.git#f3l-fixes", "update": "npm install --save-dev git+https://git.f3l.de/dungeonslayers/foundry-pc-types.git#f3l-fixes",
"lint": "eslint 'src/**/*.ts' --cache", "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": "", "author": "",
"license": "", "license": "",
@ -45,7 +46,6 @@
}, },
"lint-staged": { "lint-staged": {
"*.ts": "eslint --cache --fix", "*.ts": "eslint --cache --fix",
"*.json": "prettier --write", "*.(json|scss)": "prettier --write"
"*.scss": "prettier --write"
} }
} }