Chore: Run lint and tests on staged files only (#3291)
This commit is contained in:
parent
91f770cd37
commit
97ed3a6094
|
@ -13,12 +13,18 @@
|
||||||
"android-whitelabel": "npx react-native run-android --main-activity chat.rocket.reactnative.MainActivity --variant=experimentalPlayDebug --appId",
|
"android-whitelabel": "npx react-native run-android --main-activity chat.rocket.reactnative.MainActivity --variant=experimentalPlayDebug --appId",
|
||||||
"log-android": "react-native log-android",
|
"log-android": "react-native log-android",
|
||||||
"snyk-protect": "snyk protect",
|
"snyk-protect": "snyk protect",
|
||||||
"precommit": "eslint . && jest",
|
"precommit": "lint-staged",
|
||||||
"generate-source-maps-ios": "react-native bundle --platform ios --dev false --entry-file index.js --bundle-output ios-release.bundle --sourcemap-output ios-release.bundle.map",
|
"generate-source-maps-ios": "react-native bundle --platform ios --dev false --entry-file index.js --bundle-output ios-release.bundle --sourcemap-output ios-release.bundle.map",
|
||||||
"generate-source-maps-android": "bugsnag-sourcemaps",
|
"generate-source-maps-android": "bugsnag-sourcemaps",
|
||||||
"postinstall": "patch-package && jetify",
|
"postinstall": "patch-package && jetify",
|
||||||
"prepare": "husky install"
|
"prepare": "husky install"
|
||||||
},
|
},
|
||||||
|
"lint-staged": {
|
||||||
|
"*.{js,ts,tsx}": [
|
||||||
|
"eslint",
|
||||||
|
"jest --bail --findRelatedTests"
|
||||||
|
]
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@codler/react-native-keyboard-aware-scroll-view": "^1.0.1",
|
"@codler/react-native-keyboard-aware-scroll-view": "^1.0.1",
|
||||||
"@nozbe/watermelondb": "0.19.0",
|
"@nozbe/watermelondb": "0.19.0",
|
||||||
|
@ -62,6 +68,7 @@
|
||||||
"i18n-js": "3.8.0",
|
"i18n-js": "3.8.0",
|
||||||
"js-base64": "3.6.1",
|
"js-base64": "3.6.1",
|
||||||
"js-sha256": "^0.9.0",
|
"js-sha256": "^0.9.0",
|
||||||
|
"lint-staged": "^11.1.0",
|
||||||
"lodash": "4.17.21",
|
"lodash": "4.17.21",
|
||||||
"moment": "2.29.1",
|
"moment": "2.29.1",
|
||||||
"pretty-bytes": "5.6.0",
|
"pretty-bytes": "5.6.0",
|
||||||
|
|
Loading…
Reference in New Issue