Skip to content

Commit 46664ce

Browse files
committed
Add pre-commit checks
1 parent 48061d3 commit 46664ce

File tree

4 files changed

+25
-12
lines changed

4 files changed

+25
-12
lines changed

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

.lintstagedrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"*/**/*.{js,jsx,ts,tsx}": ["eslint --fix", "eslint"],
3+
"*/**/*.{json,css,md}": ["prettier --write"]
4+
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
4343
"eslint-plugin-react-refresh": "^0.4.9",
4444
"globals": "^15.9.0",
45-
"husky": "^9.1.5",
46-
"lint-staged": "^15.2.9",
45+
"husky": "^9.1.6",
46+
"lint-staged": "^15.2.10",
4747
"postcss": "^8.4.41",
4848
"prettier": "^3.3.3",
4949
"tailwindcss": "^3.4.10",

yarn.lock

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,10 +1559,10 @@ human-signals@^5.0.0:
15591559
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-5.0.0.tgz#42665a284f9ae0dade3ba41ebc37eb4b852f3a28"
15601560
integrity sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ==
15611561

1562-
husky@^9.1.5:
1563-
version "9.1.5"
1564-
resolved "https://registry.yarnpkg.com/husky/-/husky-9.1.5.tgz#2b6edede53ee1adbbd3a3da490628a23f5243b83"
1565-
integrity sha512-rowAVRUBfI0b4+niA4SJMhfQwc107VLkBUgEYYAOQAbqDCnra1nYh83hF/MDmhYs9t9n1E3DuKOrs2LYNC+0Ag==
1562+
husky@^9.1.6:
1563+
version "9.1.6"
1564+
resolved "https://registry.yarnpkg.com/husky/-/husky-9.1.6.tgz#e23aa996b6203ab33534bdc82306b0cf2cb07d6c"
1565+
integrity sha512-sqbjZKK7kf44hfdE94EoX8MZNk0n7HeW37O4YrVGCF4wzgQjp+akPAkfUK5LZ6KuR/6sqeAVuXHji+RzQgOn5A==
15661566

15671567
ignore@^5.2.0, ignore@^5.3.1:
15681568
version "5.3.2"
@@ -1726,18 +1726,18 @@ lines-and-columns@^1.1.6:
17261726
resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632"
17271727
integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==
17281728

1729-
lint-staged@^15.2.9:
1730-
version "15.2.9"
1731-
resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-15.2.9.tgz#bf70d40b6b192df6ad756fb89822211615e0f4da"
1732-
integrity sha512-BZAt8Lk3sEnxw7tfxM7jeZlPRuT4M68O0/CwZhhaw6eeWu0Lz5eERE3m386InivXB64fp/mDID452h48tvKlRQ==
1729+
lint-staged@^15.2.10:
1730+
version "15.2.10"
1731+
resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-15.2.10.tgz#92ac222f802ba911897dcf23671da5bb80643cd2"
1732+
integrity sha512-5dY5t743e1byO19P9I4b3x8HJwalIznL5E1FWYnU6OWw33KxNBSLAc6Cy7F2PsFEO8FKnLwjwm5hx7aMF0jzZg==
17331733
dependencies:
17341734
chalk "~5.3.0"
17351735
commander "~12.1.0"
17361736
debug "~4.3.6"
17371737
execa "~8.0.1"
17381738
lilconfig "~3.1.2"
17391739
listr2 "~8.2.4"
1740-
micromatch "~4.0.7"
1740+
micromatch "~4.0.8"
17411741
pidtree "~0.6.0"
17421742
string-argv "~0.3.2"
17431743
yaml "~2.5.0"
@@ -1825,14 +1825,22 @@ merge2@^1.3.0, merge2@^1.4.1:
18251825
resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae"
18261826
integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==
18271827

1828-
micromatch@^4.0.4, micromatch@^4.0.5, micromatch@~4.0.7:
1828+
micromatch@^4.0.4, micromatch@^4.0.5:
18291829
version "4.0.7"
18301830
resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.7.tgz#33e8190d9fe474a9895525f5618eee136d46c2e5"
18311831
integrity sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==
18321832
dependencies:
18331833
braces "^3.0.3"
18341834
picomatch "^2.3.1"
18351835

1836+
micromatch@~4.0.8:
1837+
version "4.0.8"
1838+
resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.8.tgz#d66fa18f3a47076789320b9b1af32bd86d9fa202"
1839+
integrity sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==
1840+
dependencies:
1841+
braces "^3.0.3"
1842+
picomatch "^2.3.1"
1843+
18361844
mimic-fn@^4.0.0:
18371845
version "4.0.0"
18381846
resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-4.0.0.tgz#60a90550d5cb0b239cca65d893b1a53b29871ecc"

0 commit comments

Comments
 (0)