Skip to content

Commit

Permalink
update lint-staged and husky config
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Tilsch committed Mar 29, 2024
1 parent 936ba8c commit ad53013
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm precommit
bun run precommit
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ bun i && bun run dev

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

## Committing and Contributing

### Formatter

please only commit linted and formatted code by using husky

```bash
bun run prepare
```

## Storage Endpoints

The project can operate on a variety of storage endpoints. The default is a temporary in memory DB within the browser,
Expand Down
Binary file modified bun.lockb
Binary file not shown.
13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"lint": "turbo run lint",
"lint:fix": "turbo run lint:fix",
"format": "prettier --write \"**/*.{js,ts,tsx,jsx,md}\"",
"precommit": "bun run lint:fix && bun run format"
"precommit": "bun run lint-staged",
"prepare": "husky install"
},
"workspaces": [
"apps/*",
Expand All @@ -44,12 +45,22 @@
"devDependencies": {
"@turbo/gen": "^1.13.0",
"eslint": "^8.57.0",
"husky": "^8.0.0",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"tsup": "^8.0.2",
"turbo": "^1.13.0",
"typescript": "^5"
},
"overrides": {
"@typescript-eslint/typescript-estree": "^7.4.0"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --quiet --fix"
],
"*.{js,ts,jsx,tsx,md}": [
"prettier --write --ignore-unknown"
]
}
}

0 comments on commit ad53013

Please sign in to comment.