Skip to content

Commit 4f6dc43

Browse files
authored
Add basic Zed workspace configs (#1942)
1 parent cb15268 commit 4f6dc43

1 file changed

Lines changed: 64 additions & 0 deletions

File tree

.zed/settings.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"format_on_save": "on",
3+
"languages": {
4+
"JavaScript": {
5+
"formatter": {
6+
"external": {
7+
"command": "./node_modules/.bin/prettier",
8+
"arguments": ["--stdin-filepath", "{buffer_path}"]
9+
}
10+
}
11+
},
12+
"JSON": {
13+
"formatter": {
14+
"external": {
15+
"command": "./node_modules/.bin/prettier",
16+
"arguments": ["--stdin-filepath", "{buffer_path}"]
17+
}
18+
}
19+
},
20+
"TypeScript": {
21+
"formatter": {
22+
"external": {
23+
"command": "./node_modules/.bin/prettier",
24+
"arguments": ["--stdin-filepath", "{buffer_path}"]
25+
}
26+
}
27+
},
28+
"CSS": {
29+
"formatter": {
30+
"external": {
31+
"command": "./node_modules/.bin/prettier",
32+
"arguments": ["--stdin-filepath", "{buffer_path}"]
33+
}
34+
}
35+
},
36+
"SCSS": {
37+
"formatter": {
38+
"external": {
39+
"command": "./node_modules/.bin/prettier",
40+
"arguments": ["--stdin-filepath", "{buffer_path}"]
41+
}
42+
}
43+
},
44+
"YAML": {
45+
"formatter": {
46+
"external": {
47+
"command": "./node_modules/.bin/prettier",
48+
"arguments": ["--stdin-filepath", "{buffer_path}"]
49+
}
50+
}
51+
}
52+
},
53+
"lsp": {
54+
"eslint": {
55+
"settings": {
56+
"codeActionOnSave": {
57+
"rules": ["import/order"]
58+
},
59+
"nodePath": "./node_modules/.bin",
60+
"language_ids": ["typescript", "javascript", "typescriptreact", "javascriptreact"]
61+
}
62+
}
63+
}
64+
}

0 commit comments

Comments
 (0)