diff --git a/.zed/settings.json b/.zed/settings.json index d6d5a3c..f80af8f 100644 --- a/.zed/settings.json +++ b/.zed/settings.json @@ -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": {} + } + } } } } diff --git a/package.json b/package.json index ce2747f..c70443e 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "format:py": "uvx ruff format", "lint:js": "oxlint", "lint:js:fix": "bun lint:js -- --fix", + "lint:js:strict": "oxlint --import-plugin -D correctness -W suspicious", "lint:md": "markdownlint-cli2 \"**/*.md\"", "lint:md:fix": "bun lint:md -- --fix", "lint:py": "uvx ruff check",