From b8be970f9c4359178927ebd8566e6429a007ce08 Mon Sep 17 00:00:00 2001 From: Erik Jan de Wit Date: Mon, 17 Aug 2020 09:22:40 +0200 Subject: [PATCH] added prettierrc file use settings file instead of command line fixes: #8 --- package.json | 2 +- prettierrc.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 prettierrc.json diff --git a/package.json b/package.json index b7aa5c5bcc..5e6010b546 100644 --- a/package.json +++ b/package.json @@ -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" diff --git a/prettierrc.json b/prettierrc.json new file mode 100644 index 0000000000..92cde390ac --- /dev/null +++ b/prettierrc.json @@ -0,0 +1,3 @@ +{ + "singleQuote": true +} \ No newline at end of file