-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintcache
1 lines (1 loc) · 2.49 KB
/
.eslintcache
1
[{"D:\\react apps\\seasons\\src\\index.js":"1","D:\\react apps\\seasons\\src\\SeasonsDisplay.js":"2","D:\\react apps\\seasons\\src\\Spinner.js":"3"},{"size":2049,"mtime":1610840331622,"results":"4","hashOfConfig":"5"},{"size":1004,"mtime":1610839492675,"results":"6","hashOfConfig":"5"},{"size":323,"mtime":1610840598250,"results":"7","hashOfConfig":"5"},{"filePath":"8","messages":"9","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1pllsrv",{"filePath":"10","messages":"11","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"12","usedDeprecatedRules":"13"},{"filePath":"14","messages":"15","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"D:\\react apps\\seasons\\src\\index.js",[],"D:\\react apps\\seasons\\src\\SeasonsDisplay.js",["16"],"import './SeasonsDisplay.css'\r\nimport React from 'react';\r\n\r\nconst seasonConfig = {\r\n summer: {\r\n text:\"let's hit the beach\",\r\n iconName:'sun'\r\n },\r\n winter:{\r\n text:\"Burr, it is cold. Let's get some coffee.\",\r\n iconName:'s nowflake'\r\n }\r\n}\r\n\r\nconst getSeason = (lati, month) => {\r\n if (month > 2 && month < 9) {\r\n return lati > 0 ? 'summer' : 'winter';\r\n } else {\r\n return lati < 0 ? 'winter' : 'summer';\r\n }\r\n};\r\n\r\nconst SeasonDisplay = props => {\r\n const season = getSeason(props.lat, new Date().getMonth());\r\n const icon = season === 'winter' ? 'snowflake':'sun';\r\n \r\n // console.log(season);\r\n const {text,iconName}= seasonConfig[season] //text and icon name \r\n \r\n return(\r\n \r\n <div className={`season-display ${season}`}>\r\n <i className={`icon-left massive ${iconName} icon`}/>\r\n <h1>{text}</h1>\r\n <i className={`icon-right massive ${iconName} icon`}/>\r\n </div>\r\n )\r\n};\r\n\r\nexport default SeasonDisplay;\r\n",["17","18"],"D:\\react apps\\seasons\\src\\Spinner.js",["19"],{"ruleId":"20","severity":1,"message":"21","line":25,"column":11,"nodeType":"22","messageId":"23","endLine":25,"endColumn":15},{"ruleId":"24","replacedBy":"25"},{"ruleId":"26","replacedBy":"27"},{"ruleId":"20","severity":1,"message":"28","line":1,"column":8,"nodeType":"22","messageId":"23","endLine":1,"endColumn":13},"no-unused-vars","'icon' is assigned a value but never used.","Identifier","unusedVar","no-native-reassign",["29"],"no-negated-in-lhs",["30"],"'Raect' is defined but never used.","no-global-assign","no-unsafe-negation"]