-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintcache
1 lines (1 loc) · 15.5 KB
/
.eslintcache
1
[{"C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\index.js":"1","C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\App.js":"2","C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\reportWebVitals.js":"3","C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\components\\navbar.jsx":"4","C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\components\\notFound.jsx":"5","C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\components\\countryProfile.jsx":"6","C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\components\\searchNav.jsx":"7","C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\components\\common\\searchBar.jsx":"8","C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\components\\common\\pagination.jsx":"9","C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\services\\countryService.js":"10","C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\services\\httpService.js":"11","C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\services\\paginate.js":"12","C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\components\\country.jsx":"13","C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\components\\countryDescription.jsx":"14","C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\components\\footer.jsx":"15","C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\components\\common\\listgroup.jsx":"16"},{"size":594,"mtime":1611283812432,"results":"17","hashOfConfig":"18"},{"size":1486,"mtime":1611317418005,"results":"19","hashOfConfig":"18"},{"size":362,"mtime":499162500000,"results":"20","hashOfConfig":"18"},{"size":837,"mtime":1611310380698,"results":"21","hashOfConfig":"18"},{"size":118,"mtime":1611283482269,"results":"22","hashOfConfig":"18"},{"size":1673,"mtime":1611317210963,"results":"23","hashOfConfig":"18"},{"size":1584,"mtime":1611298001422,"results":"24","hashOfConfig":"18"},{"size":686,"mtime":1611284916589,"results":"25","hashOfConfig":"18"},{"size":303,"mtime":1611286657270,"results":"26","hashOfConfig":"18"},{"size":344,"mtime":1611299471994,"results":"27","hashOfConfig":"18"},{"size":572,"mtime":1611288898473,"results":"28","hashOfConfig":"18"},{"size":199,"mtime":1611290075709,"results":"29","hashOfConfig":"18"},{"size":4005,"mtime":1611317148711,"results":"30","hashOfConfig":"18"},{"size":3427,"mtime":1611317940454,"results":"31","hashOfConfig":"18"},{"size":1002,"mtime":1611318318107,"results":"32","hashOfConfig":"18"},{"size":1088,"mtime":1611313534965,"results":"33","hashOfConfig":"18"},{"filePath":"34","messages":"35","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},"1gq3r64",{"filePath":"37","messages":"38","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"39","messages":"40","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},{"filePath":"41","messages":"42","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},{"filePath":"45","messages":"46","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"47","messages":"48","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"49","usedDeprecatedRules":"36"},{"filePath":"50","messages":"51","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"52","usedDeprecatedRules":"36"},{"filePath":"53","messages":"54","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"55","messages":"56","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"57","usedDeprecatedRules":"36"},{"filePath":"58","messages":"59","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"60","usedDeprecatedRules":"36"},{"filePath":"61","messages":"62","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},{"filePath":"63","messages":"64","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"65","messages":"66","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"67","usedDeprecatedRules":"36"},{"filePath":"68","messages":"69","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"70","messages":"71","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"36"},"C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\index.js",[],["72","73"],"C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\App.js",[],"C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\reportWebVitals.js",[],"C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\components\\navbar.jsx",[],"C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\components\\notFound.jsx",[],"C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\components\\countryProfile.jsx",[],"C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\components\\searchNav.jsx",["74","75","76"],"import React, { useEffect, useState, useContext } from \"react\";\r\nimport SearchBar from \"./common/searchBar\";\r\nimport InputLabel from \"@material-ui/core/InputLabel\";\r\nimport MenuItem from \"@material-ui/core/MenuItem\";\r\nimport FormControl from \"@material-ui/core/FormControl\";\r\nimport Select from \"@material-ui/core/Select\";\r\n\r\nconst SearchNav = ({ value, handleSearch, handleSortChange, sortColumn }) => {\r\n const [open, setOpen] = React.useState(false);\r\n\r\n const handleClose = () => {\r\n setOpen(false);\r\n };\r\n\r\n const handleOpen = () => {\r\n setOpen(true);\r\n };\r\n\r\n return (\r\n <div>\r\n <div className={`d-flex justify-content-between pt-4 mt-1`}>\r\n <div style={{ marginTop: 20 }}>\r\n <SearchBar value={value} handleSearch={handleSearch}></SearchBar>\r\n </div>\r\n <div>\r\n <FormControl style={{ minWidth: 120 }}>\r\n <InputLabel id=\"user-country-search\">Sort by</InputLabel>\r\n <Select\r\n labelId=\"user-country-search\"\r\n id=\"user-country-search\"\r\n open={open}\r\n onClose={handleClose}\r\n onOpen={handleOpen}\r\n value={sortColumn}\r\n onChange={handleSortChange}\r\n >\r\n <MenuItem value=\"all\">\r\n <em>All</em>\r\n </MenuItem>\r\n\r\n <MenuItem value={\"asc\"}>Ascending</MenuItem>\r\n <MenuItem value={\"desc\"}>Descending</MenuItem>\r\n </Select>\r\n </FormControl>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n};\r\n\r\nexport default SearchNav;\r\n","C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\components\\common\\searchBar.jsx",["77","78","79"],"import React from \"react\";\r\nimport InputAdornment from \"@material-ui/core/InputAdornment\";\r\nimport TextField from \"@material-ui/core/TextField\";\r\nimport SearchIcon from \"@material-ui/icons/Search\";\r\n\r\nconst SearchBar = ({ value, handleSearch }) => {\r\n return (\r\n <TextField\r\n size=\"small\"\r\n id=\"searchBar\"\r\n placeholder=\"Search...\"\r\n value={value}\r\n aria-label=\"Search\"\r\n onChange={(e) => handleSearch(e.target.value)}\r\n InputProps={{\r\n startAdornment: (\r\n <InputAdornment position=\"start\">\r\n <SearchIcon size=\"small\" />\r\n </InputAdornment>\r\n ),\r\n }}\r\n />\r\n );\r\n};\r\n\r\nexport default SearchBar;\r\n","C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\components\\common\\pagination.jsx",[],"C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\services\\countryService.js",["80"],"import http from \"./httpService\";\r\n\r\nconst apiEndPoint = \"https://restcountries.eu/rest/v2\";\r\n\r\nexport const getAllCountries = () => {\r\n return http.get(`${apiEndPoint}/all`);\r\n};\r\nexport const getCountryByCode = (id) => {\r\n return http.get(`${apiEndPoint}/alpha/${id}`);\r\n};\r\n\r\nexport default {\r\n getAllCountries,\r\n getCountryByCode,\r\n};\r\n","C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\services\\httpService.js",["81"],"import axios from \"axios\";\r\n\r\naxios.defaults.baseURL = process.env.REACT_APP_API_URL;\r\n\r\naxios.interceptors.response.use(null, (error) => {\r\n const exceptedError =\r\n error.response &&\r\n error.response.status >= 400 &&\r\n error.response.status < 500;\r\n\r\n if (!exceptedError) {\r\n alert(\"Unexpected error occurred.\");\r\n }\r\n return Promise.reject(error);\r\n});\r\n\r\nexport function setJwt(jwt) {\r\n axios.defaults.headers.common[\"x-auth-token\"] = jwt;\r\n}\r\n\r\nexport default {\r\n get: axios.get,\r\n post: axios.post,\r\n delete: axios.delete,\r\n put: axios.put,\r\n};\r\n","C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\services\\paginate.js",[],"C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\components\\country.jsx",["82"],"C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\components\\countryDescription.jsx",["83"],"import React, { useState, useEffect } from \"react\";\r\nimport { useParams } from \"react-router-dom\";\r\nimport countryService from \"../services/countryService\";\r\n\r\nconst CountryDescription = ({ countries }) => {\r\n const [country, setCountry] = useState({});\r\n let { id } = useParams();\r\n useEffect(() => {\r\n let init = async () => {\r\n const country = await countryService.getCountryByCode(id);\r\n setCountry(country.data);\r\n console.log(country);\r\n };\r\n init();\r\n }, []);\r\n\r\n const borderCountries = (code) => {\r\n const country = countries.find((c) => c.alpha3Code === code);\r\n return country ? country.name : \"\";\r\n };\r\n return (\r\n <section className=\"pb-5\">\r\n <div className=\"row mt-5\">\r\n <div className=\"col-md-6\">\r\n <img\r\n className=\"card-img-top hoverable\"\r\n src={country.flag}\r\n alt={country.name}\r\n />\r\n </div>\r\n <div className=\"col-md-6\">\r\n <h2 className=\"card-title font-weight-bold mt-1\">{country.name}</h2>\r\n <div className=\"row\">\r\n <div className=\"col-6\">\r\n <ul className=\"font-weight-bolder mt-2 country-data-list p-0\">\r\n <li>\r\n Capital: <b>{country.capital}</b>\r\n </li>\r\n <li>\r\n Native Name: <b>{country.nativeName}</b>\r\n </li>\r\n <li>\r\n Region: <b>{country.region}</b>\r\n </li>\r\n <li>\r\n Subregion: <b>{country.subregion}</b>\r\n </li>\r\n <li>\r\n Population: <b>{country.population}</b>\r\n </li>\r\n </ul>\r\n </div>\r\n <div className=\"col-6\">\r\n <ul className=\"font-weight-bolder mt-2 country-data-list p-0\">\r\n <li>\r\n Area:{\" \"}\r\n <b>\r\n {country.area} Km<sup>2</sup>\r\n </b>\r\n </li>\r\n <li>\r\n Native Language:{\" \"}\r\n {country.languages ? (\r\n <b>{country.languages.map((l) => l.nativeName + \", \")}</b>\r\n ) : (\r\n 0\r\n )}\r\n </li>\r\n <li>\r\n Population: <b>{country.population}</b>\r\n </li>\r\n <li>\r\n Timezone: <b>{country.timezones}</b>\r\n </li>\r\n <li>\r\n Calling Codes:{\" \"}\r\n {country.callingCodes ? <b>{country.callingCodes[0]}</b> : 0}\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div>\r\n <h4 className=\"card-title font-weight-bold my-2\">\r\n Neighbour Countries\r\n </h4>\r\n\r\n <div className=\"d-inline-block\">\r\n {country.borders\r\n ? country.borders.map((b) => (\r\n <a\r\n className=\"read-more btn-flat red-text p-1 pr-3 mr-0 mml-1\"\r\n href={`/country/${b.toLowerCase()}`}\r\n >\r\n {borderCountries(b)}\r\n </a>\r\n ))\r\n : \"\"}\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </section>\r\n );\r\n};\r\n\r\nexport default CountryDescription;\r\n","C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\components\\footer.jsx",[],"C:\\Users\\ashwa\\OneDrive\\Desktop\\Internship\\Grroom\\groomshow\\src\\components\\common\\listgroup.jsx",[],{"ruleId":"84","replacedBy":"85"},{"ruleId":"86","replacedBy":"87"},{"ruleId":"88","severity":1,"message":"89","line":1,"column":17,"nodeType":"90","messageId":"91","endLine":1,"endColumn":26},{"ruleId":"88","severity":1,"message":"92","line":1,"column":28,"nodeType":"90","messageId":"91","endLine":1,"endColumn":36},{"ruleId":"88","severity":1,"message":"93","line":1,"column":38,"nodeType":"90","messageId":"91","endLine":1,"endColumn":48},{"ruleId":"88","severity":1,"message":"89","line":1,"column":17,"nodeType":"90","messageId":"91","endLine":1,"endColumn":26},{"ruleId":"88","severity":1,"message":"92","line":1,"column":28,"nodeType":"90","messageId":"91","endLine":1,"endColumn":36},{"ruleId":"88","severity":1,"message":"93","line":1,"column":38,"nodeType":"90","messageId":"91","endLine":1,"endColumn":48},{"ruleId":"94","severity":1,"message":"95","line":12,"column":1,"nodeType":"96","endLine":15,"endColumn":3},{"ruleId":"94","severity":1,"message":"95","line":21,"column":1,"nodeType":"96","endLine":26,"endColumn":3},{"ruleId":"88","severity":1,"message":"97","line":15,"column":20,"nodeType":"90","messageId":"91","endLine":15,"endColumn":31},{"ruleId":"98","severity":1,"message":"99","line":15,"column":6,"nodeType":"100","endLine":15,"endColumn":8,"suggestions":"101"},"no-native-reassign",["102"],"no-negated-in-lhs",["103"],"no-unused-vars","'useEffect' is defined but never used.","Identifier","unusedVar","'useState' is defined but never used.","'useContext' is defined but never used.","import/no-anonymous-default-export","Assign object to a variable before exporting as module default","ExportDefaultDeclaration","'setPageSize' is assigned a value but never used.","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'id'. Either include it or remove the dependency array.","ArrayExpression",["104"],"no-global-assign","no-unsafe-negation",{"desc":"105","fix":"106"},"Update the dependencies array to be: [id]",{"range":"107","text":"108"},[490,492],"[id]"]