Skip to content

Commit

Permalink
chore :: ignore eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
wjzlskxk committed Nov 18, 2024
1 parent 177f03a commit 2f42943
Show file tree
Hide file tree
Showing 4 changed files with 486 additions and 8 deletions.
13 changes: 13 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

# ๋ชจ๋“  TypeScript ํŒŒ์ผ์„ ๊ฒ€์‚ฌํ•˜๊ณ , ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š” ์ž„ํฌํŠธ๋ฅผ ์ œ๊ฑฐ
if npx eslint --fix --ignore-pattern 'node_modules/' --ext .ts .; then
echo "๊ฒ€์‚ฌ ํ†ต๊ณผ"
exit 0
else
echo "์—๋Ÿฌ ๋ฐœ์ƒ!"
# ์˜ค๋ฅ˜ ๋ฐœ์ƒ ์‹œ, ์‹คํŒจํ•œ ํŒŒ์ผ๊ณผ ์ฝ”๋“œ ๋ผ์ธ๋งŒ ์ถœ๋ ฅ (error๋งŒ ํ•„ํ„ฐ๋ง)
npx eslint --quiet --format=compact --ext .ts . | grep 'error'
exit 1
fi
5 changes: 5 additions & 0 deletions craco.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
eslint: {
enable: false,
},
};
Loading

0 comments on commit 2f42943

Please sign in to comment.