Skip to content

Commit ebf6757

Browse files
committed
Move tools config outside package.json
1 parent 2a191a4 commit ebf6757

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

lint-staged.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default {
2+
'*.ts': 'prettier --write src test',
3+
};

package.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,5 @@
4444
"peerDependencies": {
4545
"esbuild": ">=0.18.20"
4646
},
47-
"simple-git-hooks": {
48-
"pre-commit": "npx lint-staged"
49-
},
50-
"lint-staged": {
51-
"*.ts": "prettier --write src test"
52-
},
53-
"prettier": "@jwilsson/prettier-config",
5447
"license": "MIT"
5548
}

prettier.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default "@jwilsson/prettier-config";

simple-git-hooks.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default {
2+
'pre-commit': 'npx lint-staged',
3+
};

0 commit comments

Comments
 (0)