Skip to content

Commit

Permalink
Add editor & markdown-linter configs
Browse files Browse the repository at this point in the history
  • Loading branch information
dalito committed Dec 18, 2024
1 parent f6f8d27 commit f96f41e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Check http://editorconfig.org for more information
# This is the main config file for this project:
root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
trim_trailing_whitespace = true

[*.py]
indent_style = space
indent_size = 4

[*.md]
trim_trailing_whitespace = false
17 changes: 17 additions & 0 deletions .markdownlint.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
Configuration file for VSCode-markdownlint extension,
see https://github.com/DavidAnson/vscode-markdownlint#configure
For how the rules can be configured,
see https://github.com/DavidAnson/markdownlint/blob/v0.35.0/schema/.markdownlint.jsonc
*/
{
"default": true,
"MD013": {
"line_length": 160 // Allow longer lines
},
"MD033": {
"allowed_elements": ["img"] // Allow inline images
},
"MD034": false, // No bare URLs
}

0 comments on commit f96f41e

Please sign in to comment.