From 479761fcbba3eda310fb52c23b8a13e58941b14e Mon Sep 17 00:00:00 2001 From: Chris Grieser <73286100+chrisgrieser@users.noreply.github.com> Date: Fri, 22 Dec 2023 22:00:17 +0100 Subject: [PATCH] chore: update config files --- build-and-release.sh => .build-and-release.sh | 0 .editorconfig | 27 +++++++++++++++++++ .markdownlint.yaml | 26 ++++++++++++++++++ .rsync-exclude | 2 +- Makefile | 2 +- alfred.d.ts | 2 +- jsconfig.json | 2 +- jxa-globals.d.ts | 2 +- 8 files changed, 58 insertions(+), 5 deletions(-) rename build-and-release.sh => .build-and-release.sh (100%) create mode 100644 .editorconfig create mode 100644 .markdownlint.yaml diff --git a/build-and-release.sh b/.build-and-release.sh similarity index 100% rename from build-and-release.sh rename to .build-and-release.sh diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..e6b471a --- /dev/null +++ b/.editorconfig @@ -0,0 +1,27 @@ +# vim: filetype=editorconfig +root = true + +[*] +max_line_length = 80 +end_of_line = lf +charset = utf-8 +insert_final_newline = true +indent_style = tab +indent_size = 3 +tab_width = 3 +trim_trailing_whitespace = true + +[*.{yml,yaml,scm,cff}] +indent_style = space +indent_size = 2 +tab_width = 2 + +[*.py] +indent_style = space +indent_size = 4 +tab_width = 4 + +[*.md] +indent_size = 4 +tab_width = 4 +trim_trailing_whitespace = false diff --git a/.markdownlint.yaml b/.markdownlint.yaml new file mode 100644 index 0000000..aacb33e --- /dev/null +++ b/.markdownlint.yaml @@ -0,0 +1,26 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/DavidAnson/markdownlint/main/schema/markdownlint-config-schema.json +#─────────────────────────────────────────────────────────────────────────────── +# Defaults https://github.com/DavidAnson/markdownlint/blob/main/schema/.markdownlint.yaml +# DOCS https://github.com/markdownlint/markdownlint/blob/main/docs/RULES.md +#─────────────────────────────────────────────────────────────────────────────── + +# MODIFIED SETTINGS +blanks-around-headings: + lines_below: 0 # space waster +ul-style: { style: sublist } + +# not autofixable +ol-prefix: { style: ordered } +line-length: + tables: false + code_blocks: false +no-inline-html: + allowed_elements: [img, details, summary, kbd, a, br] + +#───────────────────────────────────────────────────────────────────────────── +# DISABLED +ul-indent: false # not compatible with using tabs +no-hard-tabs: false # taken care of by editorconfig +blanks-around-lists: false # space waster +first-line-heading: false # e.g., ignore-comments +no-emphasis-as-heading: false # sometimes useful diff --git a/.rsync-exclude b/.rsync-exclude index 774e6f9..5bfa681 100644 --- a/.rsync-exclude +++ b/.rsync-exclude @@ -8,4 +8,4 @@ prefs.plist README.md LICENSE Makefile -build-and-release.sh +.build-and-release.sh diff --git a/Makefile b/Makefile index 9b9f1c5..b5df710 100644 --- a/Makefile +++ b/Makefile @@ -9,4 +9,4 @@ transfer-local-files: git status --short release: - zsh ./build-and-release.sh + zsh ./.build-and-release.sh diff --git a/alfred.d.ts b/alfred.d.ts index 9134cf6..1492d3a 120000 --- a/alfred.d.ts +++ b/alfred.d.ts @@ -1 +1 @@ -/Users/chrisgrieser/.config/_linter-configs/alfred.d.ts \ No newline at end of file +/Users/chrisgrieser/.config/+ linter-configs/jxa/alfred.d.ts \ No newline at end of file diff --git a/jsconfig.json b/jsconfig.json index 9364ba2..8f7f298 120000 --- a/jsconfig.json +++ b/jsconfig.json @@ -1 +1 @@ -/Users/chrisgrieser/.config/_linter-configs/jsconfig.json \ No newline at end of file +/Users/chrisgrieser/.config/+ linter-configs/jxa/jsconfig.json \ No newline at end of file diff --git a/jxa-globals.d.ts b/jxa-globals.d.ts index a5e1319..c4077ec 120000 --- a/jxa-globals.d.ts +++ b/jxa-globals.d.ts @@ -1 +1 @@ -/Users/chrisgrieser/.config/_linter-configs/jxa-globals.d.ts \ No newline at end of file +/Users/chrisgrieser/.config/+ linter-configs/jxa/jxa-globals.d.ts \ No newline at end of file