-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintcache
1 lines (1 loc) · 16.6 KB
/
.eslintcache
1
[{"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\index.js":"1","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\App.js":"2","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\Components\\index.js":"3","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\Components\\Info\\Info.js":"4","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\Components\\Repos\\Repos.js":"5","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\Components\\User\\User.js":"6","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\Components\\Search\\Search.js":"7","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\Components\\Navbar\\Navbar.js":"8","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\pages\\index.js":"9","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\pages\\Login.js":"10","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\pages\\Dashboard.js":"11","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\pages\\AuthWrapper.js":"12","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\pages\\Error.js":"13","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\pages\\PrivateRoute.js":"14","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\components\\index.js":"15","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\components\\Info\\Info.js":"16","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\components\\Repos\\Repos.js":"17","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\components\\Navbar\\Navbar.js":"18","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\components\\Search\\Search.js":"19","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\components\\User\\User.js":"20","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\context\\context.js":"21","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\context\\mockData\\mockUser.js":"22","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\context\\mockData\\mockRepos.js":"23","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\context\\mockData\\mockFollowers.js":"24","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\components\\Followers\\Followers.js":"25","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\components\\Card\\Card.js":"26","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\components\\Charts\\Doughnut2D.js":"27","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\components\\Charts\\Bar3D.js":"28","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\components\\Charts\\Pie3D.js":"29","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\components\\Charts\\Column2D.js":"30"},{"size":512,"mtime":1610931112919,"results":"31","hashOfConfig":"32"},{"size":550,"mtime":1610930435389,"results":"33","hashOfConfig":"32"},{"size":229,"mtime":1610666976923,"results":"34","hashOfConfig":"32"},{"size":103,"mtime":1610666817649,"results":"35","hashOfConfig":"32"},{"size":106,"mtime":1610666825150,"results":"36","hashOfConfig":"32"},{"size":103,"mtime":1610666882134,"results":"37","hashOfConfig":"32"},{"size":109,"mtime":1610666934866,"results":"38","hashOfConfig":"32"},{"size":109,"mtime":1610666965390,"results":"39","hashOfConfig":"32"},{"size":250,"mtime":1610667394646,"results":"40","hashOfConfig":"32"},{"size":984,"mtime":1610930189944,"results":"41","hashOfConfig":"32"},{"size":677,"mtime":1610972533468,"results":"42","hashOfConfig":"32"},{"size":683,"mtime":1610976722394,"results":"43","hashOfConfig":"32"},{"size":676,"mtime":1610669409877,"results":"44","hashOfConfig":"32"},{"size":458,"mtime":1610972954398,"results":"45","hashOfConfig":"32"},{"size":229,"mtime":1610703213240,"results":"46","hashOfConfig":"32"},{"size":2700,"mtime":1610705998394,"results":"47","hashOfConfig":"32"},{"size":2924,"mtime":1610904578807,"results":"48","hashOfConfig":"32"},{"size":1490,"mtime":1610974442762,"results":"49","hashOfConfig":"32"},{"size":3155,"mtime":1610903182224,"results":"50","hashOfConfig":"32"},{"size":555,"mtime":1610701191088,"results":"51","hashOfConfig":"32"},{"size":3305,"mtime":1610977909170,"results":"52","hashOfConfig":"32"},{"size":1594,"mtime":1610673132707,"results":"53","hashOfConfig":"32"},{"size":141165,"mtime":1610673177091,"results":"54","hashOfConfig":"32"},{"size":9871,"mtime":1610673193263,"results":"55","hashOfConfig":"32"},{"size":2038,"mtime":1610703782897,"results":"56","hashOfConfig":"32"},{"size":2980,"mtime":1610702150115,"results":"57","hashOfConfig":"32"},{"size":879,"mtime":1610904810158,"results":"58","hashOfConfig":"32"},{"size":855,"mtime":1610817695789,"results":"59","hashOfConfig":"32"},{"size":1181,"mtime":1610815889834,"results":"60","hashOfConfig":"32"},{"size":875,"mtime":1610904803225,"results":"61","hashOfConfig":"32"},{"filePath":"62","messages":"63","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"64"},"s7wp2t",{"filePath":"65","messages":"66","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"64"},{"filePath":"67","messages":"68","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"69","messages":"70","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"71","messages":"72","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"73","messages":"74","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"75","messages":"76","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"77","messages":"78","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"79","messages":"80","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"64"},{"filePath":"81","messages":"82","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"64"},{"filePath":"83","messages":"84","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"64"},{"filePath":"85","messages":"86","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"64"},{"filePath":"87","messages":"88","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"64"},{"filePath":"89","messages":"90","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"64"},{"filePath":"91","messages":"92","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"64"},{"filePath":"93","messages":"94","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"64"},{"filePath":"95","messages":"96","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"64"},{"filePath":"97","messages":"98","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"64"},{"filePath":"99","messages":"100","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"64"},{"filePath":"101","messages":"102","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"64"},{"filePath":"103","messages":"104","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"105","usedDeprecatedRules":"64"},{"filePath":"106","messages":"107","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"108"},{"filePath":"109","messages":"110","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"108"},{"filePath":"111","messages":"112","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"108"},{"filePath":"113","messages":"114","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"64"},{"filePath":"115","messages":"116","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"64"},{"filePath":"117","messages":"118","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"64"},{"filePath":"119","messages":"120","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"108"},{"filePath":"121","messages":"122","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"64"},{"filePath":"123","messages":"124","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"64"},"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\index.js",[],["125","126"],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\App.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\Components\\index.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\Components\\Info\\Info.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\Components\\Repos\\Repos.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\Components\\User\\User.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\Components\\Search\\Search.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\Components\\Navbar\\Navbar.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\pages\\index.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\pages\\Login.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\pages\\Dashboard.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\pages\\AuthWrapper.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\pages\\Error.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\pages\\PrivateRoute.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\components\\index.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\components\\Info\\Info.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\components\\Repos\\Repos.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\components\\Navbar\\Navbar.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\components\\Search\\Search.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\components\\User\\User.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\context\\context.js",["127","128","129"],"import React, { createContext, useState, useEffect } from \"react\";\r\nimport { useAuth0 } from \"@auth0/auth0-react\";\r\nimport axios from \"axios\";\r\n\r\nconst rootURL = \"https://api.github.com\";\r\n\r\nexport const GithubContext = createContext();\r\n\r\nfunction GitHubProvider({ children }) {\r\n // const { isAuthenticated, user } = useAuth0();\r\n\r\n // const userGit = isAuthenticated && user.nickname;\r\n\r\n const [githubUser, setGithubUser] = useState(null);\r\n const [repos, setRepos] = useState(null);\r\n const [followers, setFollowers] = useState(null);\r\n\r\n const [requests, setRequests] = useState(0);\r\n const [isLoading, setIsLoading] = useState(false);\r\n\r\n const [error, setError] = useState({ show: false, msg: \"\" });\r\n\r\n const searchGitHubUser = async (user = \"mcperera\") => {\r\n toggleError();\r\n hideError();\r\n setIsLoading(true);\r\n const response = await axios(`${rootURL}/users/${user}`).catch((error) =>\r\n console.log(error)\r\n );\r\n if (response) {\r\n setGithubUser(response.data);\r\n const { login, followers_url } = response.data;\r\n //REPOS-->\r\n // await axios(`${rootURL}/users/${login}/repos?per_page=100`)\r\n // .then((res) => {\r\n // setRepos(res.data);\r\n // })\r\n // .catch((error) => console.log(error));\r\n // //Followers -->\r\n // await axios(`${followers_url}?per_page`)\r\n // .then((res) => {\r\n // setFollowers(res.data);\r\n // })\r\n // .catch((error) => console.log(error));\r\n\r\n await Promise.allSettled([\r\n axios(`${rootURL}/users/${login}/repos?per_page=100`),\r\n axios(`${followers_url}?per_page`),\r\n ])\r\n .then((result) => {\r\n const [repos, followers] = result;\r\n const status = \"fulfilled\";\r\n\r\n if (repos.status === status) {\r\n setRepos(repos.value.data);\r\n }\r\n\r\n if (followers.status === status) {\r\n setFollowers(followers.value.data);\r\n }\r\n })\r\n .catch((error) => console.log(\"Error -->\", error));\r\n } else {\r\n toggleError(true, \"There's no user with that Username\");\r\n hideError();\r\n }\r\n checkRequest();\r\n setIsLoading(false);\r\n };\r\n\r\n const checkRequest = () => {\r\n axios(`${rootURL}/rate_limit`)\r\n .then(({ data }) => {\r\n let {\r\n rate: { remaining },\r\n } = data;\r\n setRequests(remaining);\r\n if (remaining === 0) {\r\n toggleError(true, \"Sorry, You have exceeded your hourly rate limit!\");\r\n hideError();\r\n }\r\n })\r\n .catch((error) => {\r\n console.log(error);\r\n });\r\n };\r\n\r\n function toggleError(show = false, msg = \"\") {\r\n setError({ show, msg });\r\n }\r\n\r\n function hideError() {\r\n setTimeout(() => toggleError(), 5000);\r\n }\r\n\r\n useEffect(checkRequest, []);\r\n useEffect(() => {\r\n // if (userGit) {\r\n // searchGitHubUser(userGit);\r\n // } else {\r\n // searchGitHubUser();\r\n // }\r\n searchGitHubUser();\r\n }, []);\r\n\r\n return (\r\n <GithubContext.Provider\r\n value={{\r\n githubUser,\r\n repos,\r\n followers,\r\n requests,\r\n error,\r\n searchGitHubUser,\r\n isLoading,\r\n }}>\r\n {children}\r\n </GithubContext.Provider>\r\n );\r\n}\r\n\r\nexport default GitHubProvider;\r\n","E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\context\\mockData\\mockUser.js",[],["130","131"],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\context\\mockData\\mockRepos.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\context\\mockData\\mockFollowers.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\components\\Followers\\Followers.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\components\\Card\\Card.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\components\\Charts\\Doughnut2D.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\components\\Charts\\Bar3D.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\components\\Charts\\Pie3D.js",[],"E:\\#Projects\\#Tutorials\\React\\React-Github\\react-github\\src\\components\\Charts\\Column2D.js",[],{"ruleId":"132","replacedBy":"133"},{"ruleId":"134","replacedBy":"135"},{"ruleId":"136","severity":1,"message":"137","line":2,"column":10,"nodeType":"138","messageId":"139","endLine":2,"endColumn":18},{"ruleId":"140","severity":1,"message":"141","line":96,"column":27,"nodeType":"142","endLine":96,"endColumn":29,"suggestions":"143"},{"ruleId":"140","severity":1,"message":"144","line":104,"column":6,"nodeType":"142","endLine":104,"endColumn":8,"suggestions":"145"},{"ruleId":"132","replacedBy":"146"},{"ruleId":"134","replacedBy":"147"},"no-native-reassign",["148"],"no-negated-in-lhs",["149"],"no-unused-vars","'useAuth0' is defined but never used.","Identifier","unusedVar","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'hideError'. Either include it or remove the dependency array.","ArrayExpression",["150"],"React Hook useEffect has a missing dependency: 'searchGitHubUser'. Either include it or remove the dependency array.",["151"],["148"],["149"],"no-global-assign","no-unsafe-negation",{"desc":"152","fix":"153"},{"desc":"154","fix":"155"},"Update the dependencies array to be: [hideError]",{"range":"156","text":"157"},"Update the dependencies array to be: [searchGitHubUser]",{"range":"158","text":"159"},[2824,2826],"[hideError]",[2998,3000],"[searchGitHubUser]"]