Skip to content

Commit

Permalink
chore :: test
Browse files Browse the repository at this point in the history
  • Loading branch information
wjzlskxk committed Nov 15, 2024
1 parent 96877ce commit cae676f
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 16 deletions.
9 changes: 4 additions & 5 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

if npx lint-staged; then
# λͺ¨λ“  TypeScript νŒŒμΌμ„ κ²€μ‚¬ν•˜κ³ , μ‚¬μš©ν•˜μ§€ μ•ŠλŠ” μž„ν¬νŠΈλ₯Ό 제거
if npx eslint --fix --ignore-pattern 'node_modules/' --ext .ts .; then
echo "검사 톡과"
else
echo "μ—λŸ¬ λ°œμƒ!"
echo "검사에 μ‹€νŒ¨ν•œ 파일 및 μ½”λ“œ 라인:"
# μ‹€νŒ¨ν•œ 파일과 라인 좜λ ₯
npx eslint --quiet --format=compact --ext .ts .
# 였λ₯˜ λ°œμƒ μ‹œ, μ‹€νŒ¨ν•œ 파일과 μ½”λ“œ 라인만 좜λ ₯
npx eslint --quiet --format=compact --ext .ts . | grep -E 'error|warn'
fi

5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,5 @@
"devDependencies": {
"@types/js-cookie": "^3.0.3",
"eslint-plugin-unused-imports": "^4.1.4"
},
"lint-staged": {
"*.ts": [
"eslint --fix --ignore-pattern 'node_modules/' --ext .ts ."
]
}
}
2 changes: 1 addition & 1 deletion src/hooks/Bus/useBusPassenger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const useBusPassenger = (closeModal: () => void) => {
νƒ‘μŠΉλ²„μŠ€: busPassengerData?.busName,
λΉ„κ³ : "",
}));
setBusPassengerInfo(busPassengerCsvData!!);
setBusPassengerInfo(busPassengerCsvData!);
}, [busPassengerData]);

return {
Expand Down
4 changes: 2 additions & 2 deletions src/hooks/Bus/useRegistBus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const useRegistBus = () => {
};

const formatTimeRequired = () => {
let formatTime: string = "";
let formatTime = "";

if (timeRequired.hour < 10) {
formatTime = `0${timeRequired.hour}`;
Expand Down Expand Up @@ -181,7 +181,7 @@ export const useRegistBus = () => {
e.preventDefault();

if (checkAndFilterBusEssentialInfo()) {
let timeRequired = formatTimeRequired();
const timeRequired = formatTimeRequired();

const param = {
...busContent,
Expand Down
1 change: 0 additions & 1 deletion src/hooks/Point/useModifyPointReason.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";

const useModifyPointReason = () => {
return {};
Expand Down
1 change: 0 additions & 1 deletion src/hooks/Point/useSortStudetPointScore.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from "react";

const useSortStudetPointScore = () => {
return {};
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/Schedule/useCalendarSchedule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const useCalendarSchedule = () => {
});

const loadCalendarSchedule = useCallback(() => {
let newSchedulesData = schedulesData!.data;
const newSchedulesData = schedulesData!.data;
newSchedulesData!.forEach((schedule) =>
setSchedules((prev) => {
const newHandleCalendarSchedule = calendarScheduleTransform(schedule);
Expand Down

0 comments on commit cae676f

Please sign in to comment.