File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
packages/create-commandkit/src/functions Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ export async function setup({
41
41
useTabs : false ,
42
42
lineWidth : 120 ,
43
43
indentWidth : 2 ,
44
+ endOfLine : 'lf' ,
44
45
semiColons : true ,
45
46
singleQuote : true ,
46
47
include : [ 'src/' ] ,
@@ -51,6 +52,21 @@ export async function setup({
51
52
await fs . writeJSON ( denoJsonPath , denoJson , { spaces : 2 , EOL : '\n' } ) ;
52
53
}
53
54
55
+ const prettierrc = path . join ( dir , '.prettierrc' ) ;
56
+
57
+ const prettierConfig = {
58
+ printWidth : 120 ,
59
+ tabWidth : 2 ,
60
+ useTabs : false ,
61
+ semi : true ,
62
+ endOfLine : 'lf' ,
63
+ singleQuote : true ,
64
+ trailingComma : 'all' ,
65
+ arrowParens : 'always' ,
66
+ } ;
67
+
68
+ await fs . writeJSON ( prettierrc , prettierConfig , { spaces : 2 , EOL : '\n' } ) ;
69
+
54
70
const packageJsonPath = path . join ( dir , 'package.json' ) ;
55
71
56
72
const packageJson = {
You can’t perform that action at this time.
0 commit comments