From 0010bba87a9862919f3cf82c6006c2397cf9495f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@inrae.fr> Date: Wed, 3 Jun 2020 16:06:45 +0200 Subject: [PATCH] Ajoute un script NPM pour formatter les sources. --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 554e7aa..b7dfd65 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "scripts": { "build": "gulp build", "dev": "gulp dev", - "lint": "eslint --color . && prettier --check . && depcheck ." + "lint": "eslint --color . && prettier --check . && depcheck .", + "format": "eslint --color --fix . && prettier --write ." }, "bin": "bin/prezbuilder", "repository": { -- GitLab