Skip to content

Commit

Permalink
Check format also on lint script
Browse files Browse the repository at this point in the history
  • Loading branch information
JunichiSugiura committed Aug 14, 2024
1 parent 7e2f5a9 commit 22c2218
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
RUST_VERSION: 1.78.0

jobs:
rust-test:
rust:
runs-on: ubuntu-latest
container:
image: ghcr.io/dojoengine/dojo-dev:v1.0.0-alpha.0
Expand All @@ -29,7 +29,7 @@ jobs:
token: ${{ secrets.CODECOV_TOKEN }}
files: lcov.info

ts-test:
ts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 2 additions & 1 deletion examples/starknet-react-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"e2e:ui": "playwright test --ui",
"start": "next start -p 3002",
"lint": "next lint",
"format": "prettier --write ./src"
"format": "prettier --write ./src",
"format:check": "prettier --check ./src"
},
"dependencies": {
"@cartridge/connector": "workspace:^",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "turbo dev",
"e2e": "turbo dev e2e",
"e2e:ui": "turbo dev e2e:ui",
"lint": "turbo lint",
"lint": "turbo lint format:check",
"format": "turbo format",
"clean": "git clean -xdf && pnpm store prune",
"release": "pnpm build && pnpm changeset publish",
Expand Down
3 changes: 2 additions & 1 deletion packages/connector/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"scripts": {
"build:deps": "tsc",
"prepublish": "pnpm build:deps",
"format": "prettier --write \"src/**/*.ts\""
"format": "prettier --write \"src/**/*.ts\"",
"format:check": "prettier --check \"src/**/*.ts\""
},
"files": [
"dist"
Expand Down
3 changes: 2 additions & 1 deletion packages/controller/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"type": "module",
"scripts": {
"build:deps": "tsc",
"format": "prettier --write \"src/**/*.ts\""
"format": "prettier --write \"src/**/*.ts\"",
"format:check": "prettier --check \"src/**/*.ts\""
},
"files": [
"dist"
Expand Down
3 changes: 2 additions & 1 deletion packages/keychain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"build": "TARGET_ORIGIN=\"https://x.cartridge.gg/\" next build",
"start": "next start",
"lint": "next lint",
"format": "prettier ./src --write",
"format": "prettier --write ./src",
"format:check": "prettier --check ./src",
"test": "jest --watch",
"test:ci": "jest --ci",
"gen": "graphql-codegen --config codegen.yaml"
Expand Down
3 changes: 2 additions & 1 deletion packages/ui-next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"scripts": {
"build:deps": "tsc && tsc-alias && pnpm copyThemes",
"copyThemes": "cp -R src/themes dist/themes",
"format": "prettier ./src --write",
"format": "prettier --write ./src",
"format:check": "prettier --check ./src",
"lint": "eslint . --ext ts,tsx",
"storybook": "storybook dev -p 6006",
"storybook:build": "storybook build"
Expand Down
3 changes: 2 additions & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"type": "module",
"scripts": {
"build:deps": "tsc",
"format": "prettier ./src --write",
"format": "prettier --write ./src",
"format:check": "prettier --check ./src",
"storybook": "storybook dev -p 6006",
"storybook:build": "storybook build"
},
Expand Down
1 change: 1 addition & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"lint": {},
"format": {},
"format:check": {},
"e2e": {
"persistent": true
},
Expand Down

0 comments on commit 22c2218

Please sign in to comment.