chore: add eslint, prettier, lint-staged, husky, eslint, and editorconfig

This commit is contained in:
Stefan Imhoff
2023-02-12 12:23:14 +01:00
parent 99a3bdab56
commit 9bd0f772b0
6 changed files with 86 additions and 2 deletions

36
.prettierrc.json Normal file
View File

@@ -0,0 +1,36 @@
{
"plugins": [
"prettier-plugin-astro",
"prettier-plugin-svelte",
"prettier-plugin-organize-imports",
"prettier-plugin-tailwindcss"
],
"endOfLine": "lf",
"semi": true,
"singleQuote": true,
"useTabs": true,
"tabWidth": 4,
"printWidth": 100,
"trailingComma": "es5",
"overrides": [
{
"files": "*.md",
"options": {
"singleQuote": false,
"tabWidth": 2
}
},
{
"files": "*.astro",
"options": {
"parser": "astro"
}
},
{
"files": "*.svelte",
"options": {
"parser": "svelte"
}
}
]
}