feat(nvim): added biome and mardownlint configs

This commit is contained in:
Sergio Laín 2024-01-07 17:52:00 +01:00
parent 02dfda64a3
commit 811c8720ce
No known key found for this signature in database
GPG key ID: 14C9B8080681777B
3 changed files with 55 additions and 0 deletions

View 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
}

View 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
}
}
}

View file

@ -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"]
}
}