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": [