Add prettier

This commit is contained in:
Oliver Davies 2020-03-08 17:52:42 +00:00
parent 34f876cecc
commit a3ceeaf0f3
3 changed files with 16 additions and 0 deletions

5
package-lock.json generated
View file

@ -6792,6 +6792,11 @@
"integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=",
"dev": true
},
"prettier": {
"version": "1.19.1",
"resolved": "https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz",
"integrity": "sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew=="
},
"pretty-error": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/pretty-error/-/pretty-error-2.1.1.tgz",

View file

@ -14,6 +14,7 @@
"highlightjs": "^9.16.2",
"postcss-import": "^12.0.1",
"postcss-nested": "^4.2.1",
"prettier": "^1.19.1",
"tailwindcss": "^1.1.3",
"tailwindcss-interaction-variants": "^2.2.0",
"tailwindcss-skip-link": "^1.0.1",

10
prettier.config.js Normal file
View file

@ -0,0 +1,10 @@
module.exports = {
endOfLine: 'lf',
printWidth: 80,
proseWrap: 'always',
quoteProps: 'as-needed',
singleQuote: true,
tabWidth: 2,
trailingComma: 'all',
useTabs: false,
}