✨ feat(nvim): added biome and mardownlint configs
This commit is contained in:
parent
02dfda64a3
commit
811c8720ce
3 changed files with 55 additions and 0 deletions
23
.config/nvim/rules/.markdownlint.json
Normal file
23
.config/nvim/rules/.markdownlint.json
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint/main/schema/markdownlint-config-schema.json",
|
||||
"blanks-around-headings": {
|
||||
"lines_below": 0
|
||||
},
|
||||
"ul-style": {
|
||||
"style": "sublist"
|
||||
},
|
||||
"ol-prefix": {
|
||||
"style": "ordered"
|
||||
},
|
||||
"line-length": {
|
||||
"tables": false,
|
||||
"code_blocks": false
|
||||
},
|
||||
"no-inline-html": {
|
||||
"allowed_elements": ["div", "img", "details", "summary", "kbd", "a", "br"]
|
||||
},
|
||||
"ul-indent": false,
|
||||
"no-hard-tabs": false,
|
||||
"blanks-around-lists": false,
|
||||
"first-line-heading": false
|
||||
}
|
27
.config/nvim/rules/biome.json
Normal file
27
.config/nvim/rules/biome.json
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"$schema": "https://biomejs.dev/schemas/1.4.0/schema.json",
|
||||
"organizeImports": {
|
||||
"enabled": true
|
||||
},
|
||||
"formatter": {
|
||||
"lineWidth": 120,
|
||||
"indentStyle": "space",
|
||||
"indentWidth": 2,
|
||||
"formatWithErrors": true
|
||||
},
|
||||
"javascript": {
|
||||
"globals": [
|
||||
"ObjC",
|
||||
"Application",
|
||||
"delay",
|
||||
"Path",
|
||||
"$"
|
||||
]
|
||||
},
|
||||
"linter": {
|
||||
"enabled": true,
|
||||
"rules": {
|
||||
"all": true
|
||||
}
|
||||
}
|
||||
}
|
|
@ -33,5 +33,10 @@
|
|||
"body": ["> [!WARNING]", "> $0"],
|
||||
"description": "https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#alerts",
|
||||
"prefix": "warning (callout)"
|
||||
},
|
||||
"div": {
|
||||
"body": ["<div>{$0}</div>"],
|
||||
"description": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div",
|
||||
"prefix": ["div"]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue