Add prettier support

+ CI to check formatting, and fix the couple of instances that
were not in prettier format (case in HTML clour codes).
This commit is contained in:
David Baker
2022-05-03 14:24:04 +01:00
parent f5c50230a9
commit bad8f36bf5
5 changed files with 30 additions and 1 deletions

View File

@@ -5,7 +5,9 @@
"build": "vite build",
"serve": "vite preview",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook"
"build-storybook": "build-storybook",
"prettier:check": "prettier -c src",
"prettier:format": "prettier -w src"
},
"dependencies": {
"@juggle/resize-observer": "^3.3.1",
@@ -50,6 +52,7 @@
"@babel/core": "^7.16.5",
"@storybook/react": "^6.5.0-alpha.5",
"babel-loader": "^8.2.3",
"prettier": "^2.6.2",
"sass": "^1.42.1",
"storybook-builder-vite": "^0.1.12",
"vite": "^2.4.2",