diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index e7114dc..3e852bc 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,5 +1,5 @@ ## Checklist -- [ ] Adhered to the `stylua.toml`. - [ ] Used only camelCase variable names. -- [ ] If functionality is added or modified, also made respective changes to the readme. +- [ ] If functionality is added or modified, also made respective changes to the + readme. - [ ] Used conventional commits keywords. 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/stylua.toml b/.stylua.toml similarity index 79% rename from stylua.toml rename to .stylua.toml index 24abde3..bf3e494 100644 --- a/stylua.toml +++ b/.stylua.toml @@ -1,7 +1,10 @@ # https://github.com/JohnnyMorganz/StyLua#options -column_width = 105 +column_width = 100 indent_type = "Tabs" indent_width = 3 quote_style = "AutoPreferDouble" call_parentheses = "NoSingleTable" collapse_simple_statement = "Always" + +[sort_requires] +enabled = true diff --git a/selene.toml b/selene.toml deleted file mode 100644 index b79ce95..0000000 --- a/selene.toml +++ /dev/null @@ -1,18 +0,0 @@ -std = "lua51" # LuaJit (used by nvim) is based on Lua 5.1 - -[lints] -# disabled since duplication with LSP -undefined_variable = "allow" -unused_variable = "allow" -empty_if = "allow" -unscoped_variables = "allow" -multiple_statements = "allow" - -# enabled -high_cyclomatic_complexity = "warn" - -# changed severity -if_same_then_else = "warn" - -[config] -high_cyclomatic_complexity = { maximum_complexity = 20 }