Skip to content

Commit

Permalink
chore: add format:fix and lint:fix scripts to all packages
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Dec 31, 2024
1 parent 4edea56 commit 17af22b
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 2 deletions.
2 changes: 2 additions & 0 deletions apps/browser-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"dev": "vite",
"build": "tsc && vite build",
"format": "prettier .",
"format:fix": "prettier . --write",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint:fix": "eslint . --ext ts,tsx --fix",
"preview": "vite preview",
"typecheck": "tsc --noEmit"
},
Expand Down
2 changes: 2 additions & 0 deletions apps/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
"build": "vite build",
"run": "tsx src/index.ts",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"format": "prettier . --ignore-path ../../.prettierignore",
"format:fix": "prettier . --write --ignore-path ../../.prettierignore",
"typecheck": "tsc --noEmit"
},
"repository": {
Expand Down
4 changes: 3 additions & 1 deletion apps/landing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"start": "next start",
"lint": "next lint",
"typecheck": "tsc --noEmit",
"format": "prettier --check . --ignore-path ../../.gitignore"
"format": "prettier --check . --ignore-path ../../.gitignore",
"format:fix": "prettier --write . --ignore-path ../../.gitignore",
"lint:fix": "next lint --fix"
},
"dependencies": {
"@radix-ui/react-slot": "^1.0.2",
Expand Down
2 changes: 2 additions & 0 deletions apps/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"ios": "expo run:ios",
"web": "expo start --web",
"format": "prettier .",
"format:fix": "prettier . --write",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand Down
4 changes: 3 additions & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
"lint": "next lint",
"test": "vitest",
"typecheck": "tsc --noEmit",
"format": "prettier --check . --ignore-path ../../.gitignore"
"format": "prettier --check . --ignore-path ../../.gitignore",
"format:fix": "prettier --write . --ignore-path ../../.gitignore",
"lint:fix": "next lint --fix"
},
"dependencies": {
"@auth/drizzle-adapter": "^1.4.2",
Expand Down
2 changes: 2 additions & 0 deletions apps/workers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@
"start": "tsx watch index.ts",
"start:prod": "tsx index.ts",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"format": "prettier . --ignore-path ../../.prettierignore",
"format:fix": "prettier . --ignore-path ../../.prettierignore --write",
"typecheck": "tsc --noEmit"
},
"eslintConfig": {
Expand Down
2 changes: 2 additions & 0 deletions packages/e2e_tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"scripts": {
"typecheck": "tsc --noEmit",
"format": "prettier . --ignore-path ../../.prettierignore",
"format:fix": "prettier . --write --ignore-path ../../.prettierignore",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test": "vitest run",
"test:watch": "vitest"
},
Expand Down
2 changes: 2 additions & 0 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
"build": "vite build",
"run": "tsx src/index.ts",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"format": "prettier . --ignore-path ../../.prettierignore",
"format:fix": "prettier . --write --ignore-path ../../.prettierignore",
"typecheck": "tsc --noEmit"
},
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
"scripts": {
"typecheck": "tsc --noEmit",
"format": "prettier . --ignore-path ../../.prettierignore",
"format:fix": "prettier . --write --ignore-path ../../.prettierignore",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test": "vitest"
},
"main": "index.ts",
Expand Down
2 changes: 2 additions & 0 deletions packages/trpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"scripts": {
"typecheck": "tsc --noEmit",
"format": "prettier . --ignore-path ../../.prettierignore",
"format:fix": "prettier . --write --ignore-path ../../.prettierignore",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test": "vitest"
},
"dependencies": {
Expand Down

0 comments on commit 17af22b

Please sign in to comment.