Skip to content

Commit

Permalink
fix: check types on staged
Browse files Browse the repository at this point in the history
  • Loading branch information
kacperkapusciak committed Aug 11, 2021
1 parent d1999d9 commit 0494abf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"format-android": "node ./scripts/lint-java.js",
"format-ios": "find ios/ -iname *.h -o -iname *.m -o -iname *.cpp | xargs clang-format -i",
"format-windows": "find windows/ -iname *.h -o -iname *.m -o -iname *.cpp | xargs clang-format -i",
"lint": "eslint --ext '.js,.ts,.tsx' --fix src && yarn check-types",
"lint": "eslint --ext '.js,.ts,.tsx' --fix src",
"release": "npm login && release-it",
"prepare": "bob build && husky install"
},
Expand Down Expand Up @@ -98,7 +98,10 @@
},
"lint-staged": {
"{src,Example}/**/*.{js,ts,tsx}": "yarn format-js",
"src/**/*.{js.ts.tsx}": "yarn lint",
"src/**/*.{js,ts,tsx}": [
"yarn lint",
"bash -c \"tsc --noEmit\""
],
"android/**/*.java": "yarn format-android",
"{ios,windows}/**/*.{h,m,cpp}": [
"yarn format-ios",
Expand Down

0 comments on commit 0494abf

Please sign in to comment.