build: add prettier

This commit is contained in:
Johannes Millan 2021-05-06 22:37:06 +02:00
parent b9b7f987b4
commit 8ee6191b14
5 changed files with 128 additions and 6 deletions

26
.prettierrc.json Normal file
View file

@ -0,0 +1,26 @@
{
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"quoteProps": "as-needed",
"trailingComma": "all",
"bracketSpacing": true,
"arrowParens": "always",
"endOfLine": "auto",
"printWidth": 90,
"overrides": [
{
"files": "*.component.html",
"options": {
"parser": "angular"
}
},
{
"files": "*.html",
"options": {
"parser": "html"
}
}
]
}