ignoring ts and tsx imports

This commit is contained in:
Nouman Tahir 2021-03-05 20:09:46 +05:00
parent ab51c0a96e
commit c1c00d3209
3 changed files with 13 additions and 4 deletions

View File

@ -58,6 +58,16 @@
"devDependencies": true
}
],
"import/no-unresolved": "off"
"import/no-unresolved": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
]
}
}

View File

@ -44,8 +44,8 @@ const PostDisplayContainer = ({
if (post) {
console.log('Gettting reblogs inside postDisplayContainer');
const votes = get(post, 'active_votes', []);
setActiveVotes(votes)
setActiveVotesCount(votes.length)
setActiveVotes(votes);
setActiveVotesCount(votes.length);
getPostReblogs(post).then((result) => {
setReblogs(result || []);
});

View File

@ -56,7 +56,6 @@ const PostDisplayView = ({
}
}, []);
// Component Functions
const onRefresh = useCallback(() => {
setRefreshing(true);