Skip to content

Commit 853479c

Browse files
chore(dependency): replace simple git by lint staged (#949)
1 parent 14c3674 commit 853479c

File tree

5 files changed

+189
-71
lines changed

5 files changed

+189
-71
lines changed

.eslint-bin/pre-commit-hook.js

Lines changed: 0 additions & 59 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
node ./.eslint-bin/pre-commit-hook.js
4+
npx lint-staged

.lintstagedrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"*.js": ["eslint --cache --quiet --fix"]
3+
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
"husky": "7.0.4",
6161
"jest": "26.6.3",
6262
"jest-extended": "0.11.5",
63+
"lint-staged": "12.3.7",
6364
"mysql2": "2.1.0",
6465
"onchange": "6.0.0",
6566
"pg": "8.4.2",
@@ -68,14 +69,13 @@
6869
"semantic-release-slack-bot": "3.5.2",
6970
"sequelize": "5.21.3",
7071
"sequelize-fixtures": "1.1.1",
71-
"simple-git": "1.65.0",
7272
"tedious": "11.0.8",
7373
"typescript": "4.3.2"
7474
},
7575
"scripts": {
7676
"build": "babel src --out-dir dist",
7777
"build:watch": "onchange 'src/**/*.js' 'node_modules/forest-express/dist/*' --no-exclude -i -- babel --source-maps inline --out-dir dist src",
78-
"lint": "./node_modules/eslint/bin/eslint.js .eslint-bin src test types/index.d.ts",
78+
"lint": "./node_modules/eslint/bin/eslint.js src test types/index.d.ts",
7979
"prepare": "husky install",
8080
"test": "jest",
8181
"test:coverage": "jest --coverage"

0 commit comments

Comments
 (0)