Adding Prettier configuration

This commit is contained in:
David Négrier 2021-06-23 15:51:31 +02:00
parent bdc4b43c17
commit c0bfec7b11
3 changed files with 7 additions and 1 deletions

1
front/.prettierignore Normal file
View File

@ -0,0 +1 @@
src/Messages

3
front/.prettierrc.json Normal file
View File

@ -0,0 +1,3 @@
{
"tabWidth": 4
}

View File

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