Skip to content

Commit

Permalink
chore(config): add zed editor configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
molvqingtai committed Oct 17, 2023
1 parent d6cef88 commit 04eec77
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ module.exports = {
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: './tsconfig.json'
project: './tsconfig.json',
tsconfigRootDir: __dirname,
},
plugins: ['@typescript-eslint', 'prettier'],
rules: {
Expand Down
26 changes: 26 additions & 0 deletions .zed/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"language_overrides": {
"JavaScript": {
"format_on_save": {
"external": {
"command": "node_modules/.bin/prettier",
"arguments": [
"--stdin-filepath",
"{buffer_path}"
]
}
}
},
"TypeScript": {
"format_on_save": {
"external": {
"command": "node_modules/.bin/prettier",
"arguments": [
"--stdin-filepath",
"{buffer_path}"
]
}
}
}
}
}

0 comments on commit 04eec77

Please sign in to comment.