added prettierrc file

use settings file instead of command line

fixes: #8
This commit is contained in:
Erik Jan de Wit 2020-08-17 09:22:40 +02:00
parent 80e0ac0ff8
commit b8be970f9c
2 changed files with 4 additions and 1 deletions

View file

@ -9,7 +9,7 @@
"start:rh-sso": "env-cmd -f .env.rh-sso yarn start",
"build": "snowpack build",
"test": "jest",
"format": "prettier --single-quote --write \"src/**/*.{js,jsx,ts,tsx}\"",
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
"lint": "eslint ./src/**/*.ts*",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook"

3
prettierrc.json Normal file
View file

@ -0,0 +1,3 @@
{
"singleQuote": true
}