Skip to content

Commit

Permalink
use package.json prettier config
Browse files Browse the repository at this point in the history
  • Loading branch information
swk777 committed Sep 7, 2024
1 parent de75548 commit ddb6a94
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/api/srcbook/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ export function buildJSPackageJson() {
dependencies: {
prettier: 'latest',
},
prettier: {
tabWidth: 2,
semi: true,
singleQuote: true,
printWidth: 100,
},
};
}

Expand All @@ -16,6 +22,12 @@ export function buildTSPackageJson() {
'@types/node': 'latest',
prettier: 'latest',
},
prettier: {
tabWidth: 2,
semi: true,
singleQuote: true,
printWidth: 100,
},
};
}

Expand Down

0 comments on commit ddb6a94

Please sign in to comment.