mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-22 23:37:53 +00:00
theme: add Prettier config #947
This commit is contained in:
parent
57defcfab7
commit
85d43bcef3
6 changed files with 75 additions and 35 deletions
|
@ -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
14
.gitignore
vendored
|
@ -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
21
.prettierignore
Normal 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
9
.prettierrc.json
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"printWidth": 9999,
|
||||
"proseWrap": "preserve",
|
||||
"quoteProps": "preserve",
|
||||
"trailingComma": "es5",
|
||||
"tabWidth": 2,
|
||||
"semi": true,
|
||||
"singleQuote": true
|
||||
}
|
32
.vscode/settings.json
vendored
32
.vscode/settings.json
vendored
|
@ -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"
|
||||
]
|
||||
}
|
|
@ -1 +1 @@
|
|||
7.1.1+28fce6b04c414523280c53ee02f9f3a94d9d23da
|
||||
7.1.1+57defcfab75859c444feb8af753a2b764cb6f64c
|
Loading…
Reference in a new issue