Skip to content

Commit

Permalink
Add pre-commit
Browse files Browse the repository at this point in the history
This is much easier and better than having a custom pre-commit Bash
script
  • Loading branch information
Syntro42 committed Jan 1, 2024
1 parent df51c40 commit b8f6885
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 64 deletions.
63 changes: 0 additions & 63 deletions .github/pre-commit.txt

This file was deleted.

14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
repos:
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
args: [--skip="./node_modules/*, ./dist/*, ./coverage/*, ./yarn.lock"]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v4.0.0-alpha.8
hooks:
- id: prettier
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v9.0.0-alpha.0
hooks:
- id: eslint
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"scripts": {
"build": "tsc",
"dev": "tsc-watch --onSuccess \"yarn start\"",
"format": "prettier --write \"**/*.ts\"",
"format": "prettier --write \"**/*.ts\" --cache",
"lint": "eslint .",
"lint-fix": "yarn lint --fix",
"start": "node --disable-warning=ExperimentalWarning .",
Expand Down

0 comments on commit b8f6885

Please sign in to comment.