mirror of
https://github.com/kjanat/livegraphs-django.git
synced 2026-02-13 11:49:32 +01:00
lint: Enable oxc for JS/TS and add strict lint
Configure oxc LSP initialization options: run set to "onType", typeAware enabled, unusedDisableDirectives set to "allow", and configPath/tsConfigPath left null.
This commit is contained in:
@@ -9,6 +9,34 @@
|
|||||||
"!basedpyright",
|
"!basedpyright",
|
||||||
"..."
|
"..."
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"TypeScript": {
|
||||||
|
"language_servers": [
|
||||||
|
// Enable oxc for TypeScript files.
|
||||||
|
"oxc",
|
||||||
|
"..."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"JavaScript": {
|
||||||
|
"language_servers": [
|
||||||
|
// Enable oxc for JavaScript files.
|
||||||
|
"oxc",
|
||||||
|
"..."
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"lsp": {
|
||||||
|
"oxc": {
|
||||||
|
"initialization_options": {
|
||||||
|
"options": {
|
||||||
|
"run": "onType",
|
||||||
|
"configPath": null,
|
||||||
|
"tsConfigPath": null,
|
||||||
|
"unusedDisableDirectives": "allow",
|
||||||
|
"typeAware": true,
|
||||||
|
"flags": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
"format:py": "uvx ruff format",
|
"format:py": "uvx ruff format",
|
||||||
"lint:js": "oxlint",
|
"lint:js": "oxlint",
|
||||||
"lint:js:fix": "bun lint:js -- --fix",
|
"lint:js:fix": "bun lint:js -- --fix",
|
||||||
|
"lint:js:strict": "oxlint --import-plugin -D correctness -W suspicious",
|
||||||
"lint:md": "markdownlint-cli2 \"**/*.md\"",
|
"lint:md": "markdownlint-cli2 \"**/*.md\"",
|
||||||
"lint:md:fix": "bun lint:md -- --fix",
|
"lint:md:fix": "bun lint:md -- --fix",
|
||||||
"lint:py": "uvx ruff check",
|
"lint:py": "uvx ruff check",
|
||||||
|
|||||||
Reference in New Issue
Block a user