mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-26 23:05:00 +03:00
added babel plugin to remove console logs from code
This commit is contained in:
parent
dda1ad5c0e
commit
c7f8c3a9a3
1
.gitignore
vendored
1
.gitignore
vendored
@ -68,3 +68,4 @@ package-lock.json
|
||||
my-release-key.keystore
|
||||
gradle.properties
|
||||
ios/Ecency.xcworkspace/xcuserdata/f.xcuserdatad/UserInterfaceState.xcuserstate
|
||||
yarn.lock
|
||||
|
@ -1,4 +1,5 @@
|
||||
module.exports = {
|
||||
presets: ['module:metro-react-native-babel-preset'],
|
||||
plugins: ['transform-remove-console'],
|
||||
sourceMaps: true,
|
||||
};
|
||||
|
@ -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",
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user