theme: add Prettier config #947

This commit is contained in:
Sören Weber 2024-11-15 23:37:56 +01:00
parent 57defcfab7
commit 85d43bcef3
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
6 changed files with 75 additions and 35 deletions

View file

@ -1,19 +1,13 @@
# https://editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
trim_trailing_whitespace = true
[*.css]
indent_size = 4
[*.js]
insert_final_newline = true
[*.md]
trim_trailing_whitespace = false
# https://editorconfig.org
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false

14
.gitignore vendored
View file

@ -1,7 +1,7 @@
.DS_Store
.githooks/hooks.log
.hugo_build.lock
exampleSite/public*
exampleSite/hugo*.exe
**/*.xcf
**/*.zip
.DS_Store
.githooks/hooks.log
.hugo_build.lock
exampleSite/public*
hugo*.exe
*.xcf
*.zip

21
.prettierignore Normal file
View file

@ -0,0 +1,21 @@
.vscode
assets/css/chroma*.css
assets/css/variables.css
assets/_relearn_searchindex.js
exampleSite/.frontmatter
exampleSite/content
exampleSite/layouts
exampleSite/static
exampleSite/frontmatter.json
layouts
static/css
static/fonts
static/js/d3
static/js/lunr
static/js/mathjax
static/js/swagger-ui
static/js/auto-complete.js
static/js/*.min.js
*.md
*.yaml
*.yml

9
.prettierrc.json Normal file
View file

@ -0,0 +1,9 @@
{
"printWidth": 9999,
"proseWrap": "preserve",
"quoteProps": "preserve",
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": true
}

32
.vscode/settings.json vendored
View file

@ -1,9 +1,25 @@
{
"spellright.language": [
"en"
],
"spellright.documentTypes": [
"latex",
"markdown"
]
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[yaml]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.formatOnSave": true,
"editor.tabSize": 2,
"prettier.useEditorConfig": true,
"spellright.documentTypes": [
"latex",
"markdown"
],
"spellright.language": [
"en"
]
}

View file

@ -1 +1 @@
7.1.1+28fce6b04c414523280c53ee02f9f3a94d9d23da
7.1.1+57defcfab75859c444feb8af753a2b764cb6f64c