-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintcache
1 lines (1 loc) · 12.3 KB
/
.eslintcache
1
[{"C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\index.js":"1","C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\App.js":"2","C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\pages\\Analyser.js":"3","C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\Navbar\\Navbar.js":"4","C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\pages\\Home.js":"5","C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\pages\\Stats.js":"6","C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\chatbot\\chatbotConfig.js":"7","C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\chatbot\\MessageParser.js":"8","C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\chatbot\\ActionProvider.js":"9","C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\Cards\\Cards.js":"10","C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\News\\Cards.js":"11","C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\Chart\\Chart.js":"12","C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\CountryPicker\\CountryPicker.js":"13","C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\chatbot\\Optionstwo.js":"14","C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\chatbot\\Optionsone.js":"15","C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\chatbot\\Optionsthree.js":"16","C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\chatbot\\Optionsfour.js":"17","C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\News\\CardsItem.js":"18"},{"size":1306,"mtime":1634455117950,"results":"19","hashOfConfig":"20"},{"size":668,"mtime":1634455117933,"results":"21","hashOfConfig":"20"},{"size":546,"mtime":1634455117949,"results":"22","hashOfConfig":"20"},{"size":1270,"mtime":1634455117937,"results":"23","hashOfConfig":"20"},{"size":186,"mtime":1634455117949,"results":"24","hashOfConfig":"20"},{"size":858,"mtime":1634455117950,"results":"25","hashOfConfig":"20"},{"size":934,"mtime":1643754138422,"results":"26","hashOfConfig":"20"},{"size":243,"mtime":1634455117946,"results":"27","hashOfConfig":"20"},{"size":3615,"mtime":1643754392695,"results":"28","hashOfConfig":"20"},{"size":3083,"mtime":1634455117934,"results":"29","hashOfConfig":"20"},{"size":2320,"mtime":1634455117941,"results":"30","hashOfConfig":"20"},{"size":1809,"mtime":1634455117935,"results":"31","hashOfConfig":"20"},{"size":827,"mtime":1634455117936,"results":"32","hashOfConfig":"20"},{"size":595,"mtime":1634455117948,"results":"33","hashOfConfig":"20"},{"size":595,"mtime":1634455117947,"results":"34","hashOfConfig":"20"},{"size":615,"mtime":1634455117948,"results":"35","hashOfConfig":"20"},{"size":605,"mtime":1634455117947,"results":"36","hashOfConfig":"20"},{"size":781,"mtime":1634455117941,"results":"37","hashOfConfig":"20"},{"filePath":"38","messages":"39","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},"ru3c3o",{"filePath":"41","messages":"42","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"45","messages":"46","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"47","usedDeprecatedRules":"40"},{"filePath":"48","messages":"49","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"50","messages":"51","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"52","messages":"53","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"54","messages":"55","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"56","messages":"57","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"58","messages":"59","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"60","messages":"61","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"62","messages":"63","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"64","usedDeprecatedRules":"40"},{"filePath":"65","messages":"66","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"67","messages":"68","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"69","messages":"70","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"71","messages":"72","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"73","messages":"74","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"40"},{"filePath":"75","messages":"76","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"77","usedDeprecatedRules":"40"},"C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\index.js",[],["78","79"],"C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\App.js",[],"C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\pages\\Analyser.js",[],"C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\Navbar\\Navbar.js",["80"],"import React, { useState } from \"react\";\r\nimport { Link } from \"react-router-dom\";\r\nimport { ReactComponent as CloseMenu } from \"./assets/x.svg\";\r\nimport { ReactComponent as MenuIcon } from \"./assets/menu.svg\";\r\nimport Logo from \"./assets/logo.png\";\r\nimport \"./Navbar.css\";\r\n\r\nconst Navbar = () => {\r\n const [click, setClick] = useState(false);\r\n const handleClick = () => setClick(!click);\r\n const closeMobileMenu = () => setClick(false);\r\n\r\n return (\r\n <div className=\"navbar\">\r\n {/* Mobile menu handling click */}\r\n <div className=\"mobile-menu\" onClick={handleClick}>\r\n {click ? (\r\n <CloseMenu className=\"menu-icon\" />\r\n ) : (\r\n <MenuIcon className=\"menu-icon\" />\r\n )}\r\n </div>\r\n\r\n <ul className={click ? \"nav-options active\" : \"nav-options\"}>\r\n <li className=\"option\" onClick={closeMobileMenu}>\r\n <Link to=\"/\">Home</Link>\r\n </li>\r\n\r\n <li className=\"option\" onClick={closeMobileMenu}>\r\n <Link to=\"/Stats\">Stats</Link>\r\n </li>\r\n\r\n <li className=\"option\" onClick={closeMobileMenu}>\r\n <Link to=\"/Analyser\">Analyser</Link>\r\n </li>\r\n </ul>\r\n <img src={Logo} className=\"logo\" />\r\n </div>\r\n );\r\n};\r\n\r\nexport default Navbar;\r\n","C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\pages\\Home.js",[],"C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\pages\\Stats.js",[],"C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\chatbot\\chatbotConfig.js",[],"C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\chatbot\\MessageParser.js",[],"C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\chatbot\\ActionProvider.js",[],"C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\Cards\\Cards.js",[],"C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\News\\Cards.js",[],"C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\Chart\\Chart.js",["81"],"import React, { useState, useEffect } from \"react\";\r\nimport styles from \"./Chart.css\";\r\nimport { fetchDailyData } from \"../../index\";\r\nimport { Line, Bar } from \"react-chartjs-2\";\r\n\r\nfunction Chart({ data: { confirmed, deaths, recovered }, country }) {\r\n const [dailyData, setDailyData] = useState([]);\r\n\r\n useEffect(() => {\r\n const fetchAPI = async () => {\r\n setDailyData(await fetchDailyData());\r\n };\r\n\r\n fetchAPI();\r\n }, []);\r\n\r\n const lineChart =\r\n dailyData.length !== 0 ? (\r\n <Line\r\n data={{\r\n labels: dailyData.map(({ date }) => date),\r\n datasets: [\r\n {\r\n data: dailyData.map(({ confirmed }) => confirmed),\r\n label: \"Infected\",\r\n borderColor: \"#3333ff\",\r\n fill: true,\r\n },\r\n {\r\n data: dailyData.map(({ deaths }) => deaths),\r\n label: \"Deaths\",\r\n borderColor: \"red\",\r\n backgroundColor: \"rgba(255,0,0,0.5)\",\r\n fill: true,\r\n },\r\n ],\r\n }}\r\n />\r\n ) : null;\r\n\r\n const barChart = confirmed ? (\r\n <Bar\r\n data={{\r\n labels: [\"Infected\", \"Recovered\", \"Deaths\"],\r\n datasets: [\r\n {\r\n label: \"People\",\r\n backgroundColor: [\r\n \"rgba(0, 0, 255, 0.5)\",\r\n \"rgba(0, 255, 0, 0.5)\",\r\n \"rgba(255, 0, 0, 0.5)\",\r\n ],\r\n data: [confirmed.value, recovered.value, deaths.value],\r\n },\r\n ],\r\n }}\r\n options={{\r\n legend: { display: false },\r\n title: { display: true, text: `Current state in ${country}` },\r\n }}\r\n />\r\n ) : null;\r\n\r\n return <div className=\"container\">{country ? barChart : lineChart}</div>;\r\n}\r\n\r\nexport default Chart;\r\n","C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\CountryPicker\\CountryPicker.js",[],"C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\chatbot\\Optionstwo.js",[],"C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\chatbot\\Optionsone.js",[],"C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\chatbot\\Optionsthree.js",[],"C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\chatbot\\Optionsfour.js",[],"C:\\Users\\aryan\\Documents\\GitHub\\Covid19tracker-react\\src\\components\\News\\CardsItem.js",["82"],"import React from \"react\";\r\n\r\nfunction CardItem(props) {\r\n return (\r\n <>\r\n <li className=\"cards__item\">\r\n {/* <Link className=\"cards__item__link\" to={props.path}> */}\r\n <a\r\n className=\"cards__item__link\"\r\n href={props.path}\r\n target=\"_blank\"\r\n rel=\"noreferrer\"\r\n >\r\n <figure className=\"cards__item__pic-wrap\" data-category={props.label}>\r\n <img\r\n className=\"cards__item__img\"\r\n alt=\"Travel Image\"\r\n src={props.src}\r\n />\r\n </figure>\r\n <div className=\"cards__item__info\">\r\n <h5 className=\"cards__item__text\">{props.text}</h5>\r\n </div>\r\n </a>\r\n </li>\r\n </>\r\n );\r\n}\r\n\r\nexport default CardItem;\r\n",{"ruleId":"83","replacedBy":"84"},{"ruleId":"85","replacedBy":"86"},{"ruleId":"87","severity":1,"message":"88","line":37,"column":7,"nodeType":"89","endLine":37,"endColumn":42},{"ruleId":"90","severity":1,"message":"91","line":2,"column":8,"nodeType":"92","messageId":"93","endLine":2,"endColumn":14},{"ruleId":"94","severity":1,"message":"95","line":15,"column":13,"nodeType":"89","endLine":19,"endColumn":15},"no-native-reassign",["96"],"no-negated-in-lhs",["97"],"jsx-a11y/alt-text","img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.","JSXOpeningElement","no-unused-vars","'styles' is defined but never used.","Identifier","unusedVar","jsx-a11y/img-redundant-alt","Redundant alt attribute. Screen-readers already announce `img` tags as an image. You don’t need to use the words `image`, `photo,` or `picture` (or any specified custom words) in the alt prop.","no-global-assign","no-unsafe-negation"]