Skip to content

Commit ea33322

Browse files
author
Dohyung Ahn
committed
env: update pre-commit scripts
1 parent 437c38e commit ea33322

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.husky/pre-commit

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

4-
npx lerna run precommit --stream --since HEAD --exclude-dependents
4+
npx lint-staged

apps/calendar/.lintstagedrc.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
"**/*.{js}": "eslint --fix",
3+
"**/*.{ts,tsx}": [
4+
() => "npm run check-types --workspace=@toast-ui/calendar",
5+
"eslint --fix"
6+
],
7+
"**/*.css": "stylelint"
8+
}

apps/calendar/package.json

+1-9
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,6 @@
4444
"tui-date-picker": "^4.0.1",
4545
"tui-time-picker": "^2.0.1"
4646
},
47-
"lint-staged": {
48-
"**/*.{js,ts,tsx}": [
49-
"bash -c tsc --noEmit",
50-
"eslint --fix"
51-
],
52-
"**/*.css": "stylelint"
53-
},
5447
"scripts": {
5548
"check-types": "tsc --project ./tsconfig.json --noEmit",
5649
"validate": "npm run check-types && npm run lint",
@@ -68,7 +61,6 @@
6861
"storybook:build:docs": "STORYBOOK_ENV=docs build-storybook",
6962
"ts2js": "tsc --outDir tmpdoc --sourceMap false --target ES2015 --noEmit false",
7063
"doc:dev": "npm run build:prod && npm run ts2js && tuidoc --serv",
71-
"doc": "npm run ts2js && tuidoc",
72-
"precommit": "lint-staged"
64+
"doc": "npm run ts2js && tuidoc"
7365
}
7466
}

0 commit comments

Comments
 (0)