Add basic Zed workspace configs (#1942)

This commit is contained in:
Evan Simkowitz 2025-02-09 15:00:46 -08:00 committed by GitHub
parent cb15268fe6
commit 4f6dc435c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

64
.zed/settings.json Normal file
View file

@ -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"]
}
}
}
}