File tree Expand file tree Collapse file tree 2 files changed +7
-19
lines changed
Expand file tree Collapse file tree 2 files changed +7
-19
lines changed Original file line number Diff line number Diff line change 55 "lldb.launch.preRunCommands" : [
66 " command script import ${workspaceFolder}/.vscode/rust_prettifier_for_lldb.py"
77 ],
8- "prettier.configPath" : " ./.prettierrc.cjs " ,
8+ "prettier.configPath" : " ./prettier.config.mjs " ,
99 "rust-analyzer.runnables.extraEnv" : {
1010 "RUST_LOG" : " DEBUG,hyper_unix_socket=TRACE"
1111 }
Original file line number Diff line number Diff line change 1- /**
2- * @type { import("prettier").Config }
3- */
4- const prettierConfig = {
1+ /** @type {import("prettier").Config } */
2+ export default {
53 arrowParens : "always" ,
64 bracketSpacing : true ,
7- printWidth : 80 ,
5+ printWidth : 120 ,
86 quoteProps : "as-needed" ,
97 semi : true ,
108 singleQuote : false ,
11- useTabs : false ,
129 tabWidth : 4 ,
1310 trailingComma : "all" ,
11+ useTabs : false ,
1412 overrides : [
1513 {
16- files : [ "*.ts" , "*.tsx" ] ,
14+ files : [ "**/* .ts" , "**/ *.tsx" ] ,
1715 options : {
1816 parser : "typescript" ,
1917 } ,
2018 } ,
21- {
22- files : [ "*.cjs" ] ,
23- } ,
24- {
25- files : [ "**/*.json" ] ,
26- options : {
27- trailingComma : "none" ,
28- } ,
29- } ,
3019 {
3120 files : [ "**/*.json" ] ,
3221 options : {
3322 trailingComma : "none" ,
23+ printWidth : 80 ,
3424 } ,
3525 } ,
3626 {
@@ -48,5 +38,3 @@ const prettierConfig = {
4838 ] ,
4939 plugins : [ "prettier-plugin-sh" ] ,
5040} ;
51-
52- module . exports = prettierConfig ;
You can’t perform that action at this time.
0 commit comments