Skip to content

Commit

Permalink
prettier (#2636)
Browse files Browse the repository at this point in the history
* clean

* add prettier rules

* update prettier ignore

* prettier format

* gql codegen

* Fix lint CI

* scarb fmt

---------

Co-authored-by: Bob <[email protected]>
  • Loading branch information
aymericdelab and bob0005 authored Jan 11, 2025
1 parent 3e63503 commit c14c48c
Show file tree
Hide file tree
Showing 64 changed files with 20,417 additions and 18,389 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
run: pnpm i

- name: Run Prettier
run: pnpm run prettier-check .
run: pnpm run format:check .
8 changes: 8 additions & 0 deletions client/.prettierignore → .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@

# ignore eliza folder
**/eliza

# ignore draco files
**/draco

# ignore generated files
**/gql
**/*.graphql
**/*.gen.ts
File renamed without changes.
2 changes: 2 additions & 0 deletions client/apps/balancing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"build": "tsc -b && vite build",
"dev": "vite",
"lint": "eslint .",
"format": "npx prettier --write . --root=..",
"format:check": "npx prettier --check . --root=..",
"preview": "vite preview"
},
"dependencies": {
Expand Down
2 changes: 2 additions & 0 deletions client/apps/game-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"type": "module",
"scripts": {
"build": "vocs build -o ../dist",
"format": "npx prettier --write . --root=..",
"format:check": "npx prettier --check . --root=..",
"dev": "vocs dev"
},
"packageManager": "[email protected]+sha512.cce0f9de9c5a7c95bef944169cc5dfe8741abfb145078c0d508b868056848a87c81e626246cb60967cbd7fd29a6c062ef73ff840d96b3c86c40ac92cf4a813ee"
Expand Down
2 changes: 2 additions & 0 deletions client/apps/game/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"coverage": "vitest run --coverage",
"dev": "vite",
"generate-pwa-assets": "pwa-assets-generator",
"format": "npx prettier --write . --root=..",
"format:check": "npx prettier --check . --root=..",
"lint": "eslint .",
"lint:fix": "eslint . --ext .ts,.tsx --fix",
"preview": "vite preview",
Expand Down
Loading

0 comments on commit c14c48c

Please sign in to comment.