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:
2025-11-05 15:17:57 +01:00
parent e67dd629d9
commit b70535a2a8
2 changed files with 29 additions and 0 deletions

View File

@@ -9,6 +9,34 @@
"!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": {}
}
}
}
}
}