init
This commit is contained in:
16
nvim/rules/.eslintrc.json
Normal file
16
nvim/rules/.eslintrc.json
Normal 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"
|
||||
}
|
||||
}
|
||||
5
nvim/rules/.markdownlint-cli2.yaml
Normal file
5
nvim/rules/.markdownlint-cli2.yaml
Normal 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
|
||||
23
nvim/rules/.markdownlint.jsonc
Normal file
23
nvim/rules/.markdownlint.jsonc
Normal 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,
|
||||
}
|
||||
8
nvim/rules/.prettierrc.json
Normal file
8
nvim/rules/.prettierrc.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"trailingComma": "es5",
|
||||
"tabWidth": 2,
|
||||
"useTabs": false,
|
||||
"printWidth": 120,
|
||||
"semi": false,
|
||||
"singleQuote": false
|
||||
}
|
||||
8
nvim/rules/.pylintrc
Normal file
8
nvim/rules/.pylintrc
Normal file
@@ -0,0 +1,8 @@
|
||||
[FORMAT]
|
||||
max-line-length = 120
|
||||
|
||||
[BASIC]
|
||||
indent-string = " "
|
||||
|
||||
[REPORTS]
|
||||
output-format=colorized
|
||||
10
nvim/rules/.stylelintrc.json
Normal file
10
nvim/rules/.stylelintrc.json
Normal 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
38
nvim/rules/biome.json
Normal 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
15
nvim/rules/cspell.json
Normal 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
8
nvim/rules/rustfmt.toml
Normal 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
6
nvim/rules/stylua.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
indent_type = "Spaces"
|
||||
indent_width = 2
|
||||
column_width = 120
|
||||
|
||||
[sort_requires]
|
||||
enabled = true
|
||||
Reference in New Issue
Block a user