From c0bfec7b11e26c90674b9b59808f3b81a16978e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=A9grier?= Date: Wed, 23 Jun 2021 15:51:31 +0200 Subject: [PATCH] Adding Prettier configuration --- front/.prettierignore | 1 + front/.prettierrc.json | 3 +++ front/package.json | 4 +++- 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 front/.prettierignore create mode 100644 front/.prettierrc.json diff --git a/front/.prettierignore b/front/.prettierignore new file mode 100644 index 00000000..d7d4e5c0 --- /dev/null +++ b/front/.prettierignore @@ -0,0 +1 @@ +src/Messages diff --git a/front/.prettierrc.json b/front/.prettierrc.json new file mode 100644 index 00000000..5fcd8a70 --- /dev/null +++ b/front/.prettierrc.json @@ -0,0 +1,3 @@ +{ + "tabWidth": 4 +} diff --git a/front/package.json b/front/package.json index e2702c28..6c874ec7 100644 --- a/front/package.json +++ b/front/package.json @@ -64,7 +64,9 @@ "fix": "node_modules/.bin/eslint --fix src/ . --ext .ts", "precommit": "lint-staged", "svelte-check-watch": "svelte-check --fail-on-warnings --fail-on-hints --compiler-warnings \"a11y-no-onchange:ignore,a11y-autofocus:ignore\" --watch", - "svelte-check": "svelte-check --fail-on-warnings --fail-on-hints --compiler-warnings \"a11y-no-onchange:ignore,a11y-autofocus:ignore\"" + "svelte-check": "svelte-check --fail-on-warnings --fail-on-hints --compiler-warnings \"a11y-no-onchange:ignore,a11y-autofocus:ignore\"", + "pretty": "yarn prettier --write src/", + "pretty-check": "yarn prettier --check src/" }, "lint-staged": { "*.ts": [