-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintcache
1 lines (1 loc) · 8.41 KB
/
.eslintcache
1
[{"C:\\Users\\HP\\Desktop\\react\\newapp\\src\\index.js":"1","C:\\Users\\HP\\Desktop\\react\\newapp\\src\\App.js":"2","C:\\Users\\HP\\Desktop\\react\\newapp\\src\\reportWebVitals.js":"3","C:\\Users\\HP\\Desktop\\react\\newapp\\src\\nav\\index.js":"4","C:\\Users\\HP\\Desktop\\react\\newapp\\src\\Card\\index.js":"5","C:\\Users\\HP\\Desktop\\react\\newapp\\src\\Cardlists\\index.js":"6","C:\\Users\\HP\\Desktop\\react\\newapp\\src\\Cardlists\\robots.js":"7","C:\\Users\\HP\\Desktop\\react\\newapp\\src\\User\\index.js":"8","C:\\Users\\HP\\Desktop\\react\\newapp\\src\\Top\\index.js":"9","C:\\Users\\HP\\Desktop\\react\\newapp\\src\\Search\\index.js":"10"},{"size":549,"mtime":1609412640832,"results":"11","hashOfConfig":"12"},{"size":395,"mtime":1609406315565,"results":"13","hashOfConfig":"12"},{"size":362,"mtime":499162500000,"results":"14","hashOfConfig":"12"},{"size":58,"mtime":1608830705399,"results":"15","hashOfConfig":"16"},{"size":906,"mtime":1608904773820,"results":"17","hashOfConfig":"12"},{"size":1541,"mtime":1609415077378,"results":"18","hashOfConfig":"12"},{"size":5031,"mtime":1608903072849,"results":"19","hashOfConfig":"16"},{"size":1418,"mtime":1609404942345,"results":"20","hashOfConfig":"12"},{"size":394,"mtime":1609172359155,"results":"21","hashOfConfig":"12"},{"size":412,"mtime":1609412795814,"results":"22","hashOfConfig":"12"},{"filePath":"23","messages":"24","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"25"},"1xqyw3l",{"filePath":"26","messages":"27","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"25"},{"filePath":"28","messages":"29","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"25"},{"filePath":"30","messages":"31","errorCount":0,"warningCount":10,"fixableErrorCount":0,"fixableWarningCount":0,"source":"32","usedDeprecatedRules":"33"},"idp126",{"filePath":"34","messages":"35","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},{"filePath":"37","messages":"38","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"39","usedDeprecatedRules":"25"},{"filePath":"40","messages":"41","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"42"},{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"25"},{"filePath":"45","messages":"46","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"25"},{"filePath":"47","messages":"48","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"25"},"C:\\Users\\HP\\Desktop\\react\\newapp\\src\\index.js",[],["49","50"],"C:\\Users\\HP\\Desktop\\react\\newapp\\src\\App.js",[],"C:\\Users\\HP\\Desktop\\react\\newapp\\src\\reportWebVitals.js",[],"C:\\Users\\HP\\Desktop\\react\\newapp\\src\\nav\\index.js",["51","52","53","54","55","56","57","58","59","60"],"import React from 'react';\r\nimport {Helmet} from \"react-helmet\";\r\nimport './styles.css';\r\n\r\nconst Nav = ()=>{\r\n\treturn(\r\n\t\t<>\r\n\t\t<Helmet>\r\n\t\t<meta charset = 'utf-8'/>\r\n\t\t<title>\r\n\t\t\r\n\t\t</title>\r\n\t\t</Helmet>\r\n\t\t\t<nav className=\"nav\">\r\n\t\t\t\t<div className=\"logo\">\r\n\t\t\t\tPORTFO<span>LIO</span>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div className=\"nav-links\">\r\n\t\t\t\t\t<ul>\r\n\t\t\t\t\t\t<li><a href=\"\"></a></li>\r\n\t\t\t\t\t\t<li><a href=\"\"></a></li>\r\n\t\t\t\t\t\t<li><a href=\"\"></a></li>\r\n\t\t\t\t\t\t<li><a href=\"\"></a></li>\r\n\t\t\t\t\t\t<li><a href=\"\"></a></li>\r\n\t\t\t\t\t</ul>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t</nav>\r\n\t\t</>\r\n\t\t);\r\n}\r\nexport default Nav;\r\n",["61","62"],"C:\\Users\\HP\\Desktop\\react\\newapp\\src\\Card\\index.js",[],["63","64"],"C:\\Users\\HP\\Desktop\\react\\newapp\\src\\Cardlists\\index.js",["65"],"import React, { useEffect, useState, useCallback } from \"react\";\r\nimport Card from \"../Card\";\r\nimport Search from \"../Search\";\r\nimport \"./styles.css\";\r\nimport Helmet from \"react-helmet\";\r\n\r\nconst Cardlists = (props) => {\r\n\tuseEffect(() => {\r\n\t\tgetRobots();\r\n\t}, []);\r\n\tconst [robots, setRobots] = useState([]);\r\n\tconst [filteredRobots, setFilteredRobots] = useState(robots);\r\n\tconst getRobots = useCallback(async () => {\r\n\t\tconst fetchitem = await fetch(\r\n\t\t\t`https://jsonplaceholder.typicode.com/users`\r\n\t\t);\r\n\t\tconst iteg = await fetchitem.json();\r\n\t\tsetRobots(iteg);\r\n\t\tsetFilteredRobots(iteg);\r\n\t}, []);\r\n\r\n\tconst onchange = (e) => {\r\n\t\tconst filter = robots.filter((d) => {\r\n\t\t\treturn d.name.toLowerCase().includes(e.target.value.toLowerCase());\r\n\t\t});\r\n\t\tsetFilteredRobots(filter);\r\n\t};\r\n\r\n\treturn (\r\n\t\t<React.Fragment>\r\n\t\t\t<Helmet>\r\n\t\t\t\t<title>ROBO COMPANIONS</title>\r\n\t\t\t</Helmet>\r\n\t\t\t<Search onchange={onchange} />\r\n\t\t\t<div className=\"text-center row\" style={{ marginTop: \"70px\" }}>\r\n\t\t\t\t{filteredRobots.length ? (\r\n\t\t\t\t\tfilteredRobots.map((data) => (\r\n\t\t\t\t\t\t<Card\r\n\t\t\t\t\t\t\tkey={data.id}\r\n\t\t\t\t\t\t\tname={data.name}\r\n\t\t\t\t\t\t\tid={data.id}\r\n\t\t\t\t\t\t\timageLink={data.name + data.id + data.email}\r\n\t\t\t\t\t\t/>\r\n\t\t\t\t\t))\r\n\t\t\t\t) : (\r\n\t\t\t\t\t<p\r\n\t\t\t\t\t\tclassName=\"text-center display-1 mt-5\"\r\n\t\t\t\t\t\tstyle={{\r\n\t\t\t\t\t\t\tmarginLeft: \"auto\",\r\n\t\t\t\t\t\t\tmarginRight: \"auto\",\r\n\t\t\t\t\t\t\tmarginTop: \"auto\",\r\n\t\t\t\t\t\t\tmarginBottom: \"auto\",\r\n\t\t\t\t\t\t}}\r\n\t\t\t\t\t>\r\n\t\t\t\t\t\tNO ROBOTS FOUND\r\n\t\t\t\t\t</p>\r\n\t\t\t\t)}\r\n\t\t\t</div>\r\n\t\t</React.Fragment>\r\n\t);\r\n};\r\n\r\nexport default Cardlists;\r\n","C:\\Users\\HP\\Desktop\\react\\newapp\\src\\Cardlists\\robots.js",[],["66","67"],"C:\\Users\\HP\\Desktop\\react\\newapp\\src\\User\\index.js",[],"C:\\Users\\HP\\Desktop\\react\\newapp\\src\\Top\\index.js",[],"C:\\Users\\HP\\Desktop\\react\\newapp\\src\\Search\\index.js",[],{"ruleId":"68","replacedBy":"69"},{"ruleId":"70","replacedBy":"71"},{"ruleId":"72","severity":1,"message":"73","line":20,"column":11,"nodeType":"74","endLine":20,"endColumn":22},{"ruleId":"75","severity":1,"message":"76","line":20,"column":11,"nodeType":"74","endLine":20,"endColumn":22},{"ruleId":"72","severity":1,"message":"73","line":21,"column":11,"nodeType":"74","endLine":21,"endColumn":22},{"ruleId":"75","severity":1,"message":"76","line":21,"column":11,"nodeType":"74","endLine":21,"endColumn":22},{"ruleId":"72","severity":1,"message":"73","line":22,"column":11,"nodeType":"74","endLine":22,"endColumn":22},{"ruleId":"75","severity":1,"message":"76","line":22,"column":11,"nodeType":"74","endLine":22,"endColumn":22},{"ruleId":"72","severity":1,"message":"73","line":23,"column":11,"nodeType":"74","endLine":23,"endColumn":22},{"ruleId":"75","severity":1,"message":"76","line":23,"column":11,"nodeType":"74","endLine":23,"endColumn":22},{"ruleId":"72","severity":1,"message":"73","line":24,"column":11,"nodeType":"74","endLine":24,"endColumn":22},{"ruleId":"75","severity":1,"message":"76","line":24,"column":11,"nodeType":"74","endLine":24,"endColumn":22},{"ruleId":"68","replacedBy":"77"},{"ruleId":"70","replacedBy":"78"},{"ruleId":"68","replacedBy":"79"},{"ruleId":"70","replacedBy":"80"},{"ruleId":"81","severity":1,"message":"82","line":10,"column":5,"nodeType":"83","endLine":10,"endColumn":7,"suggestions":"84"},{"ruleId":"68","replacedBy":"85"},{"ruleId":"70","replacedBy":"86"},"no-native-reassign",["87"],"no-negated-in-lhs",["88"],"jsx-a11y/anchor-has-content","Anchors must have content and the content must be accessible by a screen reader.","JSXOpeningElement","jsx-a11y/anchor-is-valid","The href attribute requires a valid value to be accessible. Provide a valid, navigable address as the href value. If you cannot provide a valid href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md",["87"],["88"],["87"],["88"],"react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'getRobots'. Either include it or remove the dependency array.","ArrayExpression",["89"],["87"],["88"],"no-global-assign","no-unsafe-negation",{"desc":"90","fix":"91"},"Update the dependencies array to be: [getRobots]",{"range":"92","text":"93"},[262,264],"[getRobots]"]