Skip to content

Commit 2df23a4

Browse files
committed
Remove pre-commit hook and library
- Remove `pre-commit` devDependency and its `spawn-sync` transitive dep - Remove `"pre-commit"` config section from package.json - Remove `lint-and-test` script (was only used by pre-commit) - Remove `pnpm.onlyBuiltDependencies` config (no longer needed) - Remove git pre-commit hook file - Update CLAUDE.md to remove pre-commit references https://claude.ai/code/session_01SUpZUWxrTYoGms6QN3VtQ9
1 parent 277975d commit 2df23a4

3 files changed

Lines changed: 1 addition & 159 deletions

File tree

CLAUDE.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,6 @@
3737

3838
## Commands
3939

40-
### Full validation (matches pre-commit hook)
41-
```sh
42-
pnpm lint-and-test # Runs: pnpm tsc && pnpm lint && pnpm jest
43-
```
44-
4540
### Individual commands
4641
```sh
4742
pnpm tsc # TypeScript type checking (strict mode, noEmit)
@@ -109,10 +104,6 @@ pnpm jest --updateSnapshot
109104
- Uses `pnpm/action-setup@v4` for pnpm installation
110105
- Steps: `pnpm install``pnpm tsc``pnpm lint``pnpm jest`
111106

112-
### Pre-commit hook
113-
- Configured via `pre-commit` package in package.json
114-
- Runs `lint-and-test` (tsc + lint + jest) before every commit
115-
116107
## Public API
117108

118109
### Exports from `index.ts`

package.json

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"lint:fix": "pnpm lint --fix",
1111
"test": "jest",
1212
"test:watch": "jest --watch",
13-
"lint-and-test": "pnpm tsc && pnpm lint && pnpm jest",
1413
"start": "echo ----- Check example folder ----- 👻",
1514
"publish": "npm publish",
1615
"publish:beta": "npm publish --tag beta"
@@ -27,7 +26,6 @@
2726
"eslint-plugin-ft-flow": "^2.0.3",
2827
"eslint-plugin-prettier": "^4.2.5",
2928
"jest": "^29.7.0",
30-
"pre-commit": "^1.2.2",
3129
"prettier": "^2.4.1",
3230
"react": "19.0.0",
3331
"react-native": "0.78.0",
@@ -55,11 +53,6 @@
5553
"<rootDir>/old-rn-example/"
5654
]
5755
},
58-
"pre-commit": {
59-
"run": [
60-
"lint-and-test"
61-
]
62-
},
6356
"repository": {
6457
"type": "git",
6558
"url": "git+https://github.com/gusgard/react-native-swiper-flatlist.git"
@@ -102,11 +95,5 @@
10295
"url": "https://github.com/gusgard"
10396
}
10497
],
105-
"packageManager": "pnpm@10.29.3",
106-
"pnpm": {
107-
"onlyBuiltDependencies": [
108-
"pre-commit",
109-
"spawn-sync"
110-
]
111-
}
98+
"packageManager": "pnpm@10.29.3"
11299
}

0 commit comments

Comments
 (0)