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
|
# https://editorconfig.org
|
||||||
|
|
||||||
root = true
|
root = true
|
||||||
|
|
||||||
[*]
|
[*]
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
indent_style = space
|
indent_style = space
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
[*.css]
|
[*.md]
|
||||||
indent_size = 4
|
trim_trailing_whitespace = false
|
||||||
|
|
||||||
[*.js]
|
|
||||||
insert_final_newline = true
|
|
||||||
|
|
||||||
[*.md]
|
|
||||||
trim_trailing_whitespace = false
|
|
||||||
|
|
14
.gitignore
vendored
14
.gitignore
vendored
|
@ -1,7 +1,7 @@
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.githooks/hooks.log
|
.githooks/hooks.log
|
||||||
.hugo_build.lock
|
.hugo_build.lock
|
||||||
exampleSite/public*
|
exampleSite/public*
|
||||||
exampleSite/hugo*.exe
|
hugo*.exe
|
||||||
**/*.xcf
|
*.xcf
|
||||||
**/*.zip
|
*.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": [
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||||
"en"
|
"[css]": {
|
||||||
],
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
"spellright.documentTypes": [
|
},
|
||||||
"latex",
|
"[javascript]": {
|
||||||
"markdown"
|
"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