Skip to content

Commit 322c61d

Browse files
committed
move Prettier config to repo too so other IDEs support it by default
1 parent 8fadb5f commit 322c61d

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"singleQuote": false,
3+
"printWidth": 100,
4+
"trailingComma": "all",
5+
"endOfLine": "auto",
6+
"todo-zm": "remove packages/tooling/.prettierrc"
7+
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ npm run dev:all
5858

5959
Please check the README.md files inside `./api` and `./web` for more info.
6060

61+
<!--todo-zm: move this to CONTRIBUTING.md-->
62+
6163
## Contributing
6264

6365
To get started, see [the contributing guidelines](https://github.com/dzcode-io/dzcode.io/blob/main/.github/CONTRIBUTING.md).
@@ -69,8 +71,6 @@ If you use VSCode, please make sure to have a `.vscode/settings.json` file with
6971
"files.associations": {
7072
"*.css": "tailwindcss"
7173
},
72-
"prettier.configPath": "packages/tooling/.prettierrc",
73-
"prettier.prettierPath": "./node_modules/prettier/index.cjs",
7474
"eslint.options": { "overrideConfigFile": "packages/tooling/eslint.config.mjs" },
7575
"editor.codeActionsOnSave": {
7676
"source.fixAll.eslint": "always",

api/src/digest/cron.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,7 @@ it may contain non-translatable parts like acronyms, keep them as is.`;
379379
repoContributors
380380
.filter(({ type }) => type === "User")
381381
.map(async (contributor) => {
382-
const userInfo = await this.githubService.getUser({
383-
username: contributor.login,
384-
});
382+
const userInfo = await this.githubService.getUser({ username: contributor.login });
385383
return {
386384
id: contributor.login,
387385
name: userInfo.name,

0 commit comments

Comments
 (0)