mirror of
https://github.com/nvms/esr.git
synced 2025-12-15 14:30:53 +00:00
make .prettierrc
This commit is contained in:
parent
94d84f51f1
commit
c3e6beb08c
@ -125,4 +125,14 @@ func InitProject() {
|
||||
}`), 0644); err != nil {
|
||||
Die("failed to write tsconfig.json: %v", err)
|
||||
}
|
||||
|
||||
prettierRcPath := filepath.Join(cwd, ".prettierrc")
|
||||
if err := os.WriteFile(prettierRcPath, []byte(`{
|
||||
"printWidth": 80,
|
||||
"semi": true,
|
||||
"singleQuote": false,
|
||||
"tabWidth": 2
|
||||
}`), 0644); err != nil {
|
||||
Die("failed to write .prettierrc: %v", err)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user