From 4f6dc435c111f27579db970441ed03da85e521bb Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Sun, 9 Feb 2025 15:00:46 -0800 Subject: [PATCH] Add basic Zed workspace configs (#1942) --- .zed/settings.json | 64 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 .zed/settings.json diff --git a/.zed/settings.json b/.zed/settings.json new file mode 100644 index 000000000..c5332294f --- /dev/null +++ b/.zed/settings.json @@ -0,0 +1,64 @@ +{ + "format_on_save": "on", + "languages": { + "JavaScript": { + "formatter": { + "external": { + "command": "./node_modules/.bin/prettier", + "arguments": ["--stdin-filepath", "{buffer_path}"] + } + } + }, + "JSON": { + "formatter": { + "external": { + "command": "./node_modules/.bin/prettier", + "arguments": ["--stdin-filepath", "{buffer_path}"] + } + } + }, + "TypeScript": { + "formatter": { + "external": { + "command": "./node_modules/.bin/prettier", + "arguments": ["--stdin-filepath", "{buffer_path}"] + } + } + }, + "CSS": { + "formatter": { + "external": { + "command": "./node_modules/.bin/prettier", + "arguments": ["--stdin-filepath", "{buffer_path}"] + } + } + }, + "SCSS": { + "formatter": { + "external": { + "command": "./node_modules/.bin/prettier", + "arguments": ["--stdin-filepath", "{buffer_path}"] + } + } + }, + "YAML": { + "formatter": { + "external": { + "command": "./node_modules/.bin/prettier", + "arguments": ["--stdin-filepath", "{buffer_path}"] + } + } + } + }, + "lsp": { + "eslint": { + "settings": { + "codeActionOnSave": { + "rules": ["import/order"] + }, + "nodePath": "./node_modules/.bin", + "language_ids": ["typescript", "javascript", "typescriptreact", "javascriptreact"] + } + } + } +}