feat: add .editorconfig and .markdownlint.jsonc for code style consistency
Browse files- .editorconfig +21 -0
- .markdownlint.jsonc +16 -0
- .vscode/settings.json +15 -5
.editorconfig
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
root = true
|
| 2 |
+
|
| 3 |
+
[*]
|
| 4 |
+
indent_style = space
|
| 5 |
+
indent_size = 4
|
| 6 |
+
end_of_line = lf
|
| 7 |
+
charset = utf-8
|
| 8 |
+
trim_trailing_whitespace = true
|
| 9 |
+
insert_final_newline = true
|
| 10 |
+
|
| 11 |
+
[*.md]
|
| 12 |
+
indent_size = 2
|
| 13 |
+
|
| 14 |
+
[*.html]
|
| 15 |
+
indent_size = 2
|
| 16 |
+
|
| 17 |
+
[*.{js,ts,tsx,jsx,json,jsonc}]
|
| 18 |
+
indent_size = 2
|
| 19 |
+
|
| 20 |
+
[*.{css,scss,less}]
|
| 21 |
+
indent_size = 2
|
.markdownlint.jsonc
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// https://github.com/DavidAnson/markdownlint/blob/main/schema/.markdownlint.jsonc
|
| 2 |
+
{
|
| 3 |
+
// MD013: Line length
|
| 4 |
+
"MD013": false,
|
| 5 |
+
|
| 6 |
+
// MD024: Multiple headers with the same content
|
| 7 |
+
"MD024": {
|
| 8 |
+
"siblings_only": true
|
| 9 |
+
},
|
| 10 |
+
|
| 11 |
+
// MD036: Emphasis used instead of a header
|
| 12 |
+
"MD036": false,
|
| 13 |
+
|
| 14 |
+
// MD040: Fenced code blocks should have a language specified
|
| 15 |
+
"MD040": false
|
| 16 |
+
}
|
.vscode/settings.json
CHANGED
|
@@ -1,7 +1,17 @@
|
|
| 1 |
{
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"github.copilot.chat.commitMessageGeneration.instructions": [
|
| 3 |
+
{
|
| 4 |
+
"text": "Use concise conventional commit messages with a type prefix (e.g. fix:, feat:, docs:, chore:, refactor:, or test:)."
|
| 5 |
+
}
|
| 6 |
+
],
|
| 7 |
+
// Python files
|
| 8 |
+
// NOTE: Ruff extension required
|
| 9 |
+
"[python]": {
|
| 10 |
+
"editor.formatOnSave": true,
|
| 11 |
+
"editor.defaultFormatter": "charliermarsh.ruff",
|
| 12 |
+
"editor.codeActionsOnSave": {
|
| 13 |
+
"source.fixAll": "explicit",
|
| 14 |
+
"source.organizeImports": "explicit"
|
| 15 |
+
}
|
| 16 |
+
},
|
| 17 |
}
|