-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 7.13 KB
/
.eslintcache
1
[{"C:\\Users\\prodriguez\\Documents\\Personal\\Projects\\rickandmorty-infinityscroll\\src\\index.js":"1","C:\\Users\\prodriguez\\Documents\\Personal\\Projects\\rickandmorty-infinityscroll\\src\\App.js":"2","C:\\Users\\prodriguez\\Documents\\Personal\\Projects\\rickandmorty-infinityscroll\\src\\reportWebVitals.js":"3","C:\\Users\\prodriguez\\Documents\\Personal\\Projects\\rickandmorty-infinityscroll\\src\\services\\getCharacters.js":"4","C:\\Users\\prodriguez\\Documents\\Personal\\Projects\\rickandmorty-infinityscroll\\src\\components\\Character.js":"5","C:\\Users\\prodriguez\\Documents\\Personal\\Projects\\rickandmorty-infinityscroll\\src\\components\\Spinner.js":"6","C:\\Users\\prodriguez\\Documents\\Personal\\Projects\\rickandmorty-infinityscroll\\src\\pages\\Board.js":"7","C:\\Users\\prodriguez\\Documents\\Personal\\Projects\\rickandmorty-infinityscroll\\src\\components\\ListOfCharacters.js":"8","C:\\Users\\prodriguez\\Documents\\Personal\\Projects\\rickandmorty-infinityscroll\\src\\hooks\\useCharacters.js":"9","C:\\Users\\prodriguez\\Documents\\Personal\\Projects\\rickandmorty-infinityscroll\\src\\hooks\\useNearBottonScreen.js":"10"},{"size":500,"mtime":499162500000,"results":"11","hashOfConfig":"12"},{"size":153,"mtime":1611456515552,"results":"13","hashOfConfig":"12"},{"size":362,"mtime":499162500000,"results":"14","hashOfConfig":"12"},{"size":436,"mtime":1611536789672,"results":"15","hashOfConfig":"12"},{"size":304,"mtime":1611105212615,"results":"16","hashOfConfig":"12"},{"size":179,"mtime":1611456929964,"results":"17","hashOfConfig":"12"},{"size":1234,"mtime":1611538652369,"results":"18","hashOfConfig":"12"},{"size":612,"mtime":1611501785247,"results":"19","hashOfConfig":"12"},{"size":718,"mtime":1611502184229,"results":"20","hashOfConfig":"12"},{"size":953,"mtime":1611538715266,"results":"21","hashOfConfig":"12"},{"filePath":"22","messages":"23","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"24"},"2glxqa",{"filePath":"25","messages":"26","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"24"},{"filePath":"27","messages":"28","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"24"},{"filePath":"29","messages":"30","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"31","messages":"32","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"24"},{"filePath":"33","messages":"34","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"24"},{"filePath":"35","messages":"36","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"37","usedDeprecatedRules":"24"},{"filePath":"38","messages":"39","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"24"},{"filePath":"40","messages":"41","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"42","usedDeprecatedRules":"24"},{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"24"},"C:\\Users\\prodriguez\\Documents\\Personal\\Projects\\rickandmorty-infinityscroll\\src\\index.js",[],["45","46"],"C:\\Users\\prodriguez\\Documents\\Personal\\Projects\\rickandmorty-infinityscroll\\src\\App.js",[],"C:\\Users\\prodriguez\\Documents\\Personal\\Projects\\rickandmorty-infinityscroll\\src\\reportWebVitals.js",[],"C:\\Users\\prodriguez\\Documents\\Personal\\Projects\\rickandmorty-infinityscroll\\src\\services\\getCharacters.js",[],"C:\\Users\\prodriguez\\Documents\\Personal\\Projects\\rickandmorty-infinityscroll\\src\\components\\Character.js",[],"C:\\Users\\prodriguez\\Documents\\Personal\\Projects\\rickandmorty-infinityscroll\\src\\components\\Spinner.js",[],"C:\\Users\\prodriguez\\Documents\\Personal\\Projects\\rickandmorty-infinityscroll\\src\\pages\\Board.js",["47","48"],"import ListOfCharacters from 'components/ListOfCharacters';\r\nimport Spinner from 'components/Spinner';\r\nimport useCharacters from 'hooks/useCharacters';\r\nimport useNearBottonScreen from 'hooks/useNearBottonScreen'\r\nimport React, { useCallback, useRef, useEffect } from 'react'\r\nimport debounce from 'just-debounce-it'\r\nimport './Board.css'\r\n\r\nexport default function Board() {\r\n\r\n const { characters, searching, page, setPage } = useCharacters()\r\n\r\n const externalRef = useRef()\r\n\r\n const { isNearScreen } = useNearBottonScreen({\r\n externalRef: searching ? null : externalRef,\r\n once: false\r\n })\r\n\r\n const debounceHandleNextPage = useCallback(debounce(\r\n () => setPage(currentPage => currentPage + 1), 200\r\n ), [setPage])\r\n\r\n useEffect(() => {\r\n if (isNearScreen) debounceHandleNextPage()\r\n }, [debounceHandleNextPage, isNearScreen])\r\n\r\n\r\n if (searching) return <Spinner />\r\n\r\n return (\r\n <>\r\n <h1 className=\"board-title\">Infinity Scrill</h1>\r\n <ListOfCharacters characters={characters} />\r\n <section className=\"board-footer\" id='observable' ref={externalRef}>\r\n <Spinner />\r\n </section>\r\n </>\r\n )\r\n}","C:\\Users\\prodriguez\\Documents\\Personal\\Projects\\rickandmorty-infinityscroll\\src\\components\\ListOfCharacters.js",[],"C:\\Users\\prodriguez\\Documents\\Personal\\Projects\\rickandmorty-infinityscroll\\src\\hooks\\useCharacters.js",["49"],"import React, { useEffect, useState } from 'react'\r\nimport getCharacters from 'services/getCharacters'\r\n\r\nconst INITIAL_PAGE = 1\r\n\r\nexport default function useCharacters() {\r\n\r\n const [characters, setCharacters] = useState([])\r\n const [searching, setSearching] = useState(false)\r\n const [page, setPage] = useState(INITIAL_PAGE)\r\n\r\n useEffect(() => {\r\n setSearching(true)\r\n \r\n getCharacters({ page: page })\r\n .then(response => {\r\n setCharacters(prevCharacters => prevCharacters.concat(response))\r\n })\r\n .finally(\r\n setSearching(false)\r\n )\r\n }, [page])\r\n\r\n return { characters, searching, setPage }\r\n}","C:\\Users\\prodriguez\\Documents\\Personal\\Projects\\rickandmorty-infinityscroll\\src\\hooks\\useNearBottonScreen.js",[],{"ruleId":"50","replacedBy":"51"},{"ruleId":"52","replacedBy":"53"},{"ruleId":"54","severity":1,"message":"55","line":11,"column":36,"nodeType":"56","messageId":"57","endLine":11,"endColumn":40},{"ruleId":"58","severity":1,"message":"59","line":20,"column":36,"nodeType":"56","endLine":20,"endColumn":47},{"ruleId":"54","severity":1,"message":"60","line":1,"column":8,"nodeType":"56","messageId":"57","endLine":1,"endColumn":13},"no-native-reassign",["61"],"no-negated-in-lhs",["62"],"no-unused-vars","'page' is assigned a value but never used.","Identifier","unusedVar","react-hooks/exhaustive-deps","React Hook useCallback received a function whose dependencies are unknown. Pass an inline function instead.","'React' is defined but never used.","no-global-assign","no-unsafe-negation"]