-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintcache
1 lines (1 loc) · 8.38 KB
/
.eslintcache
1
[{"/mnt/c/Users/Anissa Tran/Desktop/workspace/countdown/src/index.tsx":"1","/mnt/c/Users/Anissa Tran/Desktop/workspace/countdown/src/App.tsx":"2","/mnt/c/Users/Anissa Tran/Desktop/workspace/countdown/src/reportWebVitals.ts":"3","/mnt/c/Users/Anissa Tran/Desktop/workspace/countdown/src/Home.tsx":"4","/mnt/c/Users/Anissa Tran/Desktop/workspace/countdown/src/Widgets.tsx":"5","/home/atran/workspace/countdown/src/index.tsx":"6","/home/atran/workspace/countdown/src/Widgets.tsx":"7","/home/atran/workspace/countdown/src/Home.tsx":"8","/home/atran/workspace/countdown/src/api/getCats.ts":"9","/home/atran/workspace/countdown/src/widgets/CatWidget.tsx":"10","/home/atran/workspace/countdown/src/cssComponents/Button.tsx":"11","/home/atran/workspace/countdown/src/cssComponents/Input.tsx":"12","/home/atran/workspace/countdown/src/widgets/JokeWidget.tsx":"13","/home/atran/workspace/countdown/src/api/getChuckNorris.ts":"14","/home/atran/workspace/countdown/src/widgets/QuoteWidget.tsx":"15","/home/atran/workspace/countdown/src/widgets/CatImage.tsx":"16","/home/atran/workspace/countdown/src/api/getWeather.ts":"17"},{"size":500,"mtime":1607378083523,"results":"18","hashOfConfig":"19"},{"size":268,"mtime":1607511807697,"results":"20","hashOfConfig":"19"},{"size":425,"mtime":1607378083539,"results":"21","hashOfConfig":"19"},{"size":1343,"mtime":1607640655274,"results":"22","hashOfConfig":"19"},{"size":122,"mtime":1607638818453,"results":"23","hashOfConfig":"19"},{"size":500,"mtime":1607378083523,"results":"24","hashOfConfig":"25"},{"size":1232,"mtime":1607802033780,"results":"26","hashOfConfig":"25"},{"size":2060,"mtime":1607862211090,"results":"27","hashOfConfig":"25"},{"size":247,"mtime":1607796358660,"results":"28","hashOfConfig":"25"},{"size":1061,"mtime":1607797487060,"results":"29","hashOfConfig":"25"},{"size":274,"mtime":1607773149150,"results":"30","hashOfConfig":"25"},{"size":625,"mtime":1607773725570,"results":"31","hashOfConfig":"25"},{"size":871,"mtime":1607795826530,"results":"32","hashOfConfig":"25"},{"size":240,"mtime":1607776733030,"results":"33","hashOfConfig":"25"},{"size":1016,"mtime":1607787720710,"results":"34","hashOfConfig":"25"},{"size":691,"mtime":1607798847510,"results":"35","hashOfConfig":"25"},{"size":305,"mtime":1607862133320,"results":"36","hashOfConfig":"25"},{"filePath":"37","messages":"38","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"19sv6ai",{"filePath":"39","messages":"40","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"41","messages":"42","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"43","messages":"44","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"45","messages":"46","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"47","messages":"48","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"49"},"nhbz29",{"filePath":"50","messages":"51","errorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"52","messages":"53","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"54","messages":"55","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"56","messages":"57","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"58"},{"filePath":"59","messages":"60","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"61","messages":"62","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"63","messages":"64","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"65","messages":"66","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"67","messages":"68","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"69","messages":"70","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"71"},{"filePath":"72","messages":"73","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/mnt/c/Users/Anissa Tran/Desktop/workspace/countdown/src/index.tsx",[],"/mnt/c/Users/Anissa Tran/Desktop/workspace/countdown/src/App.tsx",[],"/mnt/c/Users/Anissa Tran/Desktop/workspace/countdown/src/reportWebVitals.ts",[],"/mnt/c/Users/Anissa Tran/Desktop/workspace/countdown/src/Home.tsx",[],"/mnt/c/Users/Anissa Tran/Desktop/workspace/countdown/src/Widgets.tsx",[],"/home/atran/workspace/countdown/src/index.tsx",[],["74","75"],"/home/atran/workspace/countdown/src/Widgets.tsx",["76"],"/home/atran/workspace/countdown/src/Home.tsx",[],"/home/atran/workspace/countdown/src/api/getCats.ts",[],"/home/atran/workspace/countdown/src/widgets/CatWidget.tsx",["77","78","79"],"import { useEffect, useState } from 'react'\r\nimport getCats from '../api/getCats'\r\nimport { Cat } from '../interfaces'\r\nimport styles from './CatWidget.module.css'\r\nimport Button from '../cssComponents/Button'\r\nimport Input from '../cssComponents/Input'\r\nimport CatImage from './CatImage'\r\n\r\nconst CatWidget = () => {\r\n const [cats, setCats] = useState<Cat[]>([])\r\n const [limit, setLimit] = useState<number>(5)\r\n const [refresh, toggleRefresh] = useState<boolean>(true)\r\n\r\n useEffect(() => {\r\n fetchdata(limit)\r\n }, [])\r\n\r\n const fetchdata = async (limit: number) => {\r\n const response = await getCats(limit)\r\n setCats(response);\r\n }\r\n\r\n return <>\r\n <div className='row'>\r\n <Button onClick={() => fetchdata(limit)} text='MORE CATS!'/> \r\n <Input onChange={(e) => setLimit(e)} value={limit}/>\r\n </div>\r\n\r\n <div className={styles.widgetWindow}>\r\n {cats?.map((cat: Cat) => <CatImage key={cat.id} cat={cat}/>)} \r\n </div>\r\n </>\r\n}\r\n\r\nexport default CatWidget","/home/atran/workspace/countdown/src/cssComponents/Button.tsx",[],"/home/atran/workspace/countdown/src/cssComponents/Input.tsx",[],"/home/atran/workspace/countdown/src/widgets/JokeWidget.tsx",[],"/home/atran/workspace/countdown/src/api/getChuckNorris.ts",[],"/home/atran/workspace/countdown/src/widgets/QuoteWidget.tsx",[],"/home/atran/workspace/countdown/src/widgets/CatImage.tsx",["80"],"import { useState, useEffect } from 'react'\r\nimport { Cat } from '../interfaces'\r\nimport styles from './CatImage.module.css'\r\n\r\ninterface CatImageProps {\r\n cat: Cat\r\n}\r\n\r\nconst CatImage = (props: CatImageProps) => {\r\n const [loaded, toggleLoaded] = useState<boolean>(false)\r\n\r\n return (\r\n <div style={{position: 'relative'}} className='row'>\r\n {!loaded && <div className='loader'/>}\r\n <img \r\n className={styles.catImg}\r\n height=\"200px\"\r\n src={props.cat.url}\r\n onLoad={() => toggleLoaded(true)}\r\n alt=\"new\"\r\n />\r\n\r\n </div>\r\n )\r\n}\r\n\r\nexport default CatImage\r\n","/home/atran/workspace/countdown/src/api/getWeather.ts",[],{"ruleId":"81","replacedBy":"82"},{"ruleId":"83","replacedBy":"84"},{"ruleId":null,"fatal":true,"severity":2,"message":"85","line":31,"column":72},{"ruleId":"86","severity":1,"message":"87","line":12,"column":12,"nodeType":"88","messageId":"89","endLine":12,"endColumn":19},{"ruleId":"86","severity":1,"message":"90","line":12,"column":21,"nodeType":"88","messageId":"89","endLine":12,"endColumn":34},{"ruleId":"91","severity":1,"message":"92","line":16,"column":8,"nodeType":"93","endLine":16,"endColumn":10,"suggestions":"94"},{"ruleId":"86","severity":1,"message":"95","line":1,"column":20,"nodeType":"88","messageId":"89","endLine":1,"endColumn":29},"no-native-reassign",["96"],"no-negated-in-lhs",["97"],"Parsing error: Identifier expected.","@typescript-eslint/no-unused-vars","'refresh' is assigned a value but never used.","Identifier","unusedVar","'toggleRefresh' is assigned a value but never used.","react-hooks/exhaustive-deps","React Hook useEffect has a missing dependency: 'limit'. Either include it or remove the dependency array.","ArrayExpression",["98"],"'useEffect' is defined but never used.","no-global-assign","no-unsafe-negation",{"desc":"99","fix":"100"},"Update the dependencies array to be: [limit]",{"range":"101","text":"102"},[538,540],"[limit]"]