This commit is contained in:
2025-08-13 21:46:48 +02:00
commit c3e2e6509b
818 changed files with 54187 additions and 0 deletions

16
nvim/rules/.eslintrc.json Normal file
View File

@@ -0,0 +1,16 @@
{
"env": {
"es2021": true,
"node": true,
"browser": false
},
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"ignorePatterns": ["test/", "dist/"],
"rules": {
"prettier/prettier": "error"
}
}

View File

@@ -0,0 +1,5 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/DavidAnson/markdownlint-cli2/main/schema/markdownlint-cli2-config-schema.json
config:
MD013: false
MD033: false
MD045: false

View File

@@ -0,0 +1,23 @@
{
"$schema": "https://raw.githubusercontent.com/DavidAnson/markdownlint/main/schema/markdownlint-config-schema.json",
"blanks-around-headings": {
"lines_below": 0,
},
"ul-style": {
"style": "sublist",
},
"ol-prefix": {
"style": "ordered",
},
"line-length": {
"tables": false,
"code_blocks": false,
},
"no-inline-html": {
"allowed_elements": ["div", "img", "details", "summary", "kbd", "a", "br"],
},
"ul-indent": false,
"no-hard-tabs": false,
"blanks-around-lists": false,
"first-line-heading": false,
}

View File

@@ -0,0 +1,8 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"useTabs": false,
"printWidth": 120,
"semi": false,
"singleQuote": false
}

8
nvim/rules/.pylintrc Normal file
View File

@@ -0,0 +1,8 @@
[FORMAT]
max-line-length = 120
[BASIC]
indent-string = " "
[REPORTS]
output-format=colorized

View File

@@ -0,0 +1,10 @@
{
"extends": "stylelint-config-standard",
"rules": {
"indentation": 2,
"selector-pseudo-element-colon-notation": "double",
"declaration-block-trailing-semicolon": "always",
"no-empty-source": null,
"color-hex-case": "lower"
}
}

38
nvim/rules/biome.json Normal file
View File

@@ -0,0 +1,38 @@
{
// Use the schema of the version installed from mason
"$schema": "~/.local/share/nvim/mason/packages/biome/node_modules/@biomejs/biome/configuration_schema.json",
"organizeImports": {
"enabled": true
},
"formatter": {
"enabled": true,
"lineWidth": 120,
"indentStyle": "space",
"indentWidth": 2,
"formatWithErrors": true
},
"javascript": {
"globals": [
"ObjC", // JXA variable
"Application",
"delay",
"Path",
"$",
"dv" // dataview
]
},
"linter": {
"enabled": true,
"rules": {
"all": true
}
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true
},
"json": {
"parser": { "allowComments": true } // for `tsconfig.json`
}
}

15
nvim/rules/cspell.json Normal file
View File

@@ -0,0 +1,15 @@
{
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
"version": "0.2",
"language": "en",
"globRoot": ".",
"dictionaryDefinitions": [
{
"name": "cspell-dictionary",
"path": "./cspell-dictionary.txt",
"addWords": true
}
],
"dictionaries": ["cspell-dictionary"],
"ignorePaths": ["node_modules", "dist", "build", "/cspell-dictionary.txt"]
}

8
nvim/rules/rustfmt.toml Normal file
View File

@@ -0,0 +1,8 @@
imports_granularity = "Crate"
group_imports = "One"
imports_layout = "Horizontal"
max_width = 120
struct_lit_style = "Block"
enum_style = "Block"

6
nvim/rules/stylua.toml Normal file
View File

@@ -0,0 +1,6 @@
indent_type = "Spaces"
indent_width = 2
column_width = 120
[sort_requires]
enabled = true