chore: update config files
parent
ce4dd7f098
commit
b7804edd75
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
18
selene.toml
18
selene.toml
|
|
@ -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 }
|
||||
Loading…
Reference in New Issue