added babel plugin to remove console logs from code

This commit is contained in:
Nouman Tahir 2021-03-04 19:25:51 +05:00
parent dda1ad5c0e
commit c7f8c3a9a3
5 changed files with 4 additions and 9545 deletions

1
.gitignore vendored
View File

@ -68,3 +68,4 @@ package-lock.json
my-release-key.keystore
gradle.properties
ios/Ecency.xcworkspace/xcuserdata/f.xcuserdatad/UserInterfaceState.xcuserstate
yarn.lock

View File

@ -1,4 +1,5 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
plugins: ['transform-remove-console'],
sourceMaps: true,
};

View File

@ -125,6 +125,7 @@
"@react-native-community/eslint-config": "^0.0.5",
"babel-eslint": "^10.0.1",
"babel-jest": "^24.9.0",
"babel-plugin-transform-remove-console": "^6.9.4",
"eslint": "5.16.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-config-prettier": "^6.7.0",

View File

@ -417,6 +417,7 @@ export const getSCAccessToken = (code) =>
export const getPromotePosts = () => {
try {
console.log("Fetching promoted posts")
return api.get('/promoted-posts?limit=10').then((resp) => resp.data);
} catch (error) {
return error;

9545
yarn.lock

File diff suppressed because it is too large Load Diff