-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintcache
1 lines (1 loc) · 10.9 KB
/
.eslintcache
1
[{"C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\reportWebVitals.ts":"1","C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\App.tsx":"2","C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\index.tsx":"3","C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\components\\Main\\Main.tsx":"4","C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\services\\github-users.service.ts":"5","C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\components\\Search\\SearchInput\\SearchInput.tsx":"6","C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\pages\\SearchPage\\SearchPage.tsx":"7","C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\components\\AppRouter\\AppRouter.tsx":"8","C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\components\\Search\\SearchResultsList\\SearchResultsList.tsx":"9","C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\hooks\\useUsersUpdater.tsx":"10","C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\components\\Search\\SearchResult\\SearchResult.tsx":"11","C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\hooks\\useForm.tsx":"12","C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\components\\FontAwesomeIcons\\index.ts":"13","C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\pages\\HomePage\\HomePage.tsx":"14"},{"size":425,"mtime":1609583606103,"results":"15","hashOfConfig":"16"},{"size":256,"mtime":1609617905325,"results":"17","hashOfConfig":"16"},{"size":501,"mtime":1609590232261,"results":"18","hashOfConfig":"16"},{"size":283,"mtime":1609664187733,"results":"19","hashOfConfig":"16"},{"size":578,"mtime":1609664801565,"results":"20","hashOfConfig":"16"},{"size":1091,"mtime":1609664277034,"results":"21","hashOfConfig":"16"},{"size":981,"mtime":1609664749991,"results":"22","hashOfConfig":"16"},{"size":580,"mtime":1609664130005,"results":"23","hashOfConfig":"16"},{"size":2148,"mtime":1609664442209,"results":"24","hashOfConfig":"16"},{"size":2175,"mtime":1609664649111,"results":"25","hashOfConfig":"16"},{"size":883,"mtime":1609666033031,"results":"26","hashOfConfig":"16"},{"size":527,"mtime":1609664502967,"results":"27","hashOfConfig":"16"},{"size":198,"mtime":1609664161284,"results":"28","hashOfConfig":"16"},{"size":522,"mtime":1609664692370,"results":"29","hashOfConfig":"16"},{"filePath":"30","messages":"31","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"32"},"ay8s0w",{"filePath":"33","messages":"34","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"35","messages":"36","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"37","messages":"38","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"39","messages":"40","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"41","messages":"42","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"43","messages":"44","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":1,"source":null},{"filePath":"45","messages":"46","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"47","messages":"48","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"49","usedDeprecatedRules":"32"},{"filePath":"50","messages":"51","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"52","messages":"53","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"54","messages":"55","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"56","messages":"57","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"58","messages":"59","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\reportWebVitals.ts",[],["60","61"],"C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\App.tsx",[],"C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\index.tsx",[],"C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\components\\Main\\Main.tsx",["62","63","64"],"C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\services\\github-users.service.ts",[],"C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\components\\Search\\SearchInput\\SearchInput.tsx",[],"C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\pages\\SearchPage\\SearchPage.tsx",["65","66"],"C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\components\\AppRouter\\AppRouter.tsx",[],"C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\components\\Search\\SearchResultsList\\SearchResultsList.tsx",["67"],"import React, { useCallback, useRef } from \"react\";\r\n\r\nimport SearchResult from \"../SearchResult/SearchResult\";\r\nimport \"./SearchResultsList.scss\";\r\n\r\n/**\r\n * @description Props for SearchResult component.\r\n */\r\ninterface ISearchResultsProps {\r\n users;\r\n totalCount: number;\r\n loading: boolean;\r\n error: boolean;\r\n hasMore: boolean;\r\n submittedUser: string;\r\n pageState: [\r\n { pageNumber: number },\r\n React.Dispatch<React.SetStateAction<{ pageNumber: number }>>\r\n ];\r\n}\r\n\r\n/**\r\n * @description Contains and displays search results in the search page.\r\n */\r\nexport default function SearchResultsList({\r\n users,\r\n totalCount,\r\n loading,\r\n error,\r\n hasMore,\r\n submittedUser,\r\n pageState: [, setPage],\r\n}: ISearchResultsProps) {\r\n const observer: any = useRef();\r\n const lastSearchResultRef = useCallback(\r\n (node) => {\r\n if (loading || error) return;\r\n if (observer.current) observer.current.disconnect();\r\n observer.current = new IntersectionObserver((entries) => {\r\n if (entries[0].isIntersecting) {\r\n if (hasMore) {\r\n setPage(({ pageNumber: prevPageNumber }) => ({\r\n pageNumber: prevPageNumber + 1,\r\n }));\r\n }\r\n }\r\n });\r\n if (node) observer.current.observe(node);\r\n },\r\n [loading, hasMore, error]\r\n );\r\n\r\n const shouldDisplayLoading = () => loading && submittedUser && !error;\r\n const shouldDisplayTotalCount = () => totalCount > -1;\r\n\r\n return (\r\n <div className=\"list-container\">\r\n {shouldDisplayTotalCount() && (\r\n <div className=\"total-count-container\">{`${totalCount} user(s) found`}</div>\r\n )}\r\n <div className=\"users-list\">\r\n {users && (\r\n <ul>\r\n {users.map((user, i) => (\r\n <li\r\n ref={i === users.length - 1 ? lastSearchResultRef : null}\r\n key={user.id}\r\n >\r\n <SearchResult user={user} />\r\n </li>\r\n ))}\r\n </ul>\r\n )}\r\n </div>\r\n <div>{shouldDisplayLoading() && \"Loading...\"}</div>\r\n <div>{error && \"Error.\"}</div>\r\n </div>\r\n );\r\n}\r\n","C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\hooks\\useUsersUpdater.tsx",["68"],"C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\components\\Search\\SearchResult\\SearchResult.tsx",["69"],"C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\hooks\\useForm.tsx",[],"C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\components\\FontAwesomeIcons\\index.ts",[],"C:\\Users\\Joker\\Desktop\\X Files\\Personal Projects\\Web\\Front End\\React\\usertron\\src\\pages\\HomePage\\HomePage.tsx",[],{"ruleId":"70","replacedBy":"71"},{"ruleId":"72","replacedBy":"73"},{"ruleId":"74","severity":1,"message":"75","line":1,"column":17,"nodeType":"76","messageId":"77","endLine":1,"endColumn":26},{"ruleId":"74","severity":1,"message":"78","line":1,"column":28,"nodeType":"76","messageId":"77","endLine":1,"endColumn":36},{"ruleId":"74","severity":1,"message":"79","line":2,"column":8,"nodeType":"76","messageId":"77","endLine":2,"endColumn":18},{"ruleId":"74","severity":1,"message":"78","line":1,"column":17,"nodeType":"76","messageId":"77","endLine":1,"endColumn":25},{"ruleId":"80","severity":1,"message":"81","line":5,"column":3,"nodeType":"82","messageId":"83","endLine":5,"endColumn":51,"fix":"84"},{"ruleId":"85","severity":1,"message":"86","line":50,"column":5,"nodeType":"87","endLine":50,"endColumn":30,"suggestions":"88"},{"ruleId":"85","severity":1,"message":"89","line":62,"column":6,"nodeType":"87","endLine":62,"endColumn":27,"suggestions":"90"},{"ruleId":"91","severity":1,"message":"92","line":12,"column":26,"nodeType":"93","endLine":12,"endColumn":41},"no-native-reassign",["94"],"no-negated-in-lhs",["95"],"@typescript-eslint/no-unused-vars","'useEffect' is defined but never used.","Identifier","unusedVar","'useState' is defined but never used.","'SearchPage' is defined but never used.","no-useless-rename","Import IUseUsersUpdaterOutput unnecessarily renamed.","ImportSpecifier","unnecessarilyRenamed",{"range":"96","text":"97"},"react-hooks/exhaustive-deps","React Hook useCallback has a missing dependency: 'setPage'. Either include it or remove the dependency array. If 'setPage' changes too often, find the parent component that defines it and wrap that definition in useCallback.","ArrayExpression",["98"],"React Hook useEffect has a missing dependency: 'getUsers'. Either include it or remove the dependency array.",["99"],"react/jsx-no-target-blank","Using target=\"_blank\" without rel=\"noreferrer\" is a security risk: see https://html.spec.whatwg.org/multipage/links.html#link-type-noopener","JSXAttribute","no-global-assign","no-unsafe-negation",[241,289],"IUseUsersUpdaterOutput",{"desc":"100","fix":"101"},{"desc":"102","fix":"103"},"Update the dependencies array to be: [loading, error, hasMore, setPage]",{"range":"104","text":"105"},"Update the dependencies array to be: [getUsers, page, submittedUser]",{"range":"106","text":"107"},[1295,1320],"[loading, error, hasMore, setPage]",[1859,1880],"[getUsers, page, submittedUser]"]