This repository has been archived by the owner on Jul 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 6.35 KB
/
.eslintcache
1
[{"D:\\Users\\AlexS\\Desktop\\P\\JS\\anifind\\src\\index.js":"1","D:\\Users\\AlexS\\Desktop\\P\\JS\\anifind\\src\\reportWebVitals.js":"2","D:\\Users\\AlexS\\Desktop\\P\\JS\\anifind\\src\\app\\App.js":"3","D:\\Users\\AlexS\\Desktop\\P\\JS\\anifind\\src\\hooks\\useDebounce.hook.js":"4","D:\\Users\\AlexS\\Desktop\\P\\JS\\anifind\\src\\hooks\\useLocalStorage.hook.js":"5","D:\\Users\\AlexS\\Desktop\\P\\JS\\anifind\\src\\app\\search\\search.component.js":"6","D:\\Users\\AlexS\\Desktop\\P\\JS\\anifind\\src\\app\\search\\searchAnime.js":"7","D:\\Users\\AlexS\\Desktop\\P\\JS\\anifind\\src\\app\\anime\\animeContainer.component.js":"8","D:\\Users\\AlexS\\Desktop\\P\\JS\\anifind\\src\\app\\anime\\searchedAnime.component.js":"9","D:\\Users\\AlexS\\Desktop\\P\\JS\\anifind\\src\\hooks\\useDidMount.hook.js":"10"},{"size":292,"mtime":1610360494816,"results":"11","hashOfConfig":"12"},{"size":364,"mtime":1610364996278,"results":"13","hashOfConfig":"12"},{"size":449,"mtime":1610565762865,"results":"14","hashOfConfig":"12"},{"size":367,"mtime":1610370807244,"results":"15","hashOfConfig":"12"},{"size":687,"mtime":1610552511972,"results":"16","hashOfConfig":"12"},{"size":3765,"mtime":1610571545097,"results":"17","hashOfConfig":"12"},{"size":391,"mtime":1610398062909,"results":"18","hashOfConfig":"12"},{"size":640,"mtime":1610560964451,"results":"19","hashOfConfig":"12"},{"size":771,"mtime":1610562300493,"results":"20","hashOfConfig":"12"},{"size":214,"mtime":1610394186241,"results":"21","hashOfConfig":"12"},{"filePath":"22","messages":"23","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"24"},"p514q",{"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,"usedDeprecatedRules":"24"},{"filePath":"31","messages":"32","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"33","usedDeprecatedRules":"24"},{"filePath":"34","messages":"35","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"24"},{"filePath":"36","messages":"37","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"38","usedDeprecatedRules":"24"},{"filePath":"39","messages":"40","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"41","usedDeprecatedRules":"24"},{"filePath":"42","messages":"43","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"44"},{"filePath":"45","messages":"46","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"24"},"D:\\Users\\AlexS\\Desktop\\P\\JS\\anifind\\src\\index.js",[],["47","48","49","50","51"],"D:\\Users\\AlexS\\Desktop\\P\\JS\\anifind\\src\\reportWebVitals.js",[],"D:\\Users\\AlexS\\Desktop\\P\\JS\\anifind\\src\\app\\App.js",[],"D:\\Users\\AlexS\\Desktop\\P\\JS\\anifind\\src\\hooks\\useDebounce.hook.js",[],"D:\\Users\\AlexS\\Desktop\\P\\JS\\anifind\\src\\hooks\\useLocalStorage.hook.js",["52"],"import { useState, useEffect } from 'react';\n\nexport default function useLocalStorage(key) {\n const [currentValue, setCurrentValue] = useState(() =>\n localStorage.getItem(key)\n );\n\n useEffect(() => {\n const handler = (e) => {\n if (e.storageArea === localStorage && e.key === key) {\n setCurrentValue(e.newValue);\n }\n };\n window.addEventListener('storage', handler);\n return () => {\n window.removeEventListener('storage', handler);\n };\n });\n\n useEffect(() => {\n try {\n localStorage.setItem(key, currentValue);\n } catch (error) {\n console.log(error);\n }\n }, [key, currentValue]);\n\n return [currentValue, setCurrentValue];\n}\n","D:\\Users\\AlexS\\Desktop\\P\\JS\\anifind\\src\\app\\search\\search.component.js",[],"D:\\Users\\AlexS\\Desktop\\P\\JS\\anifind\\src\\app\\search\\searchAnime.js",["53"],"export default async function searchAnime(search) {\n const apiAddress = process.env.REACT_APP_API_ADDRESS;\n const queryString = `?q=${search}`;\n\n const data =\n (await fetch(`${apiAddress}${queryString}`)\n .then((r) => r.json())\n .then((r) => r.results)\n .catch((error) => {\n console.error(error);\n return [];\n })) || [];\n\n return data.slice(0, 5);\n}\n","D:\\Users\\AlexS\\Desktop\\P\\JS\\anifind\\src\\app\\anime\\animeContainer.component.js",["54"],"import React from 'react';\nimport './anime.css';\nimport SearchedAnimeComponent from './searchedAnime.component';\n\nconst AnimeContainerComponent = (prop) => {\n const { anime, save } = prop;\n let animeList = [];\n\n try {\n animeList = anime.map((result) => (\n <li key={`li_${result.mal_id || ''}`}>\n <SearchedAnimeComponent anime={result} save={save || null} />\n </li>\n ));\n } catch (error) {\n console.error(error);\n return null;\n }\n\n return <ul className=\"Anime\">{animeList}</ul>;\n};\n\nexport default React.memo(AnimeContainerComponent);\n","D:\\Users\\AlexS\\Desktop\\P\\JS\\anifind\\src\\app\\anime\\searchedAnime.component.js",[],["55","56","57","58","59"],"D:\\Users\\AlexS\\Desktop\\P\\JS\\anifind\\src\\hooks\\useDidMount.hook.js",[],{"ruleId":"60","replacedBy":"61"},{"ruleId":"62","replacedBy":"63"},{"ruleId":"64","replacedBy":"65"},{"ruleId":"66","replacedBy":"67"},{"ruleId":"68","replacedBy":"69"},{"ruleId":"70","severity":1,"message":"71","line":24,"column":7,"nodeType":"72","messageId":"73","endLine":24,"endColumn":18},{"ruleId":"70","severity":1,"message":"71","line":10,"column":9,"nodeType":"72","messageId":"73","endLine":10,"endColumn":22},{"ruleId":"70","severity":1,"message":"71","line":16,"column":5,"nodeType":"72","messageId":"73","endLine":16,"endColumn":18},{"ruleId":"60","replacedBy":"74"},{"ruleId":"62","replacedBy":"75"},{"ruleId":"64","replacedBy":"76"},{"ruleId":"66","replacedBy":"77"},{"ruleId":"68","replacedBy":"78"},"lines-around-directive",["79"],"global-require",[],"no-buffer-constructor",[],"no-new-require",[],"no-path-concat",[],"no-console","Unexpected console statement.","MemberExpression","unexpected",["79"],[],[],[],[],"padding-line-between-statements"]