-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintcache
1 lines (1 loc) · 7.55 KB
/
.eslintcache
1
[{"/Users/lukeliu/Desktop/alan_ai/src/index.js":"1","/Users/lukeliu/Desktop/alan_ai/src/App.js":"2","/Users/lukeliu/Desktop/alan_ai/src/components/NewsCards/NewsCards.js":"3","/Users/lukeliu/Desktop/alan_ai/src/components/NewsCard/NewsCard.js":"4","/Users/lukeliu/Desktop/alan_ai/src/components/NewsCards/styles.js":"5","/Users/lukeliu/Desktop/alan_ai/src/components/NewsCard/styles.js":"6","/Users/lukeliu/Desktop/alan_ai/src/styles.js":"7"},{"size":169,"mtime":1609801201149,"results":"8","hashOfConfig":"9"},{"size":1255,"mtime":1609988184694,"results":"10","hashOfConfig":"9"},{"size":2552,"mtime":1609987877108,"results":"11","hashOfConfig":"9"},{"size":1665,"mtime":1609996631051,"results":"12","hashOfConfig":"9"},{"size":555,"mtime":1609984528406,"results":"13","hashOfConfig":"9"},{"size":760,"mtime":1609983585172,"results":"14","hashOfConfig":"9"},{"size":1634,"mtime":1609985454681,"results":"15","hashOfConfig":"9"},{"filePath":"16","messages":"17","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"18"},"nr0w0f",{"filePath":"19","messages":"20","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"18"},{"filePath":"21","messages":"22","errorCount":0,"warningCount":1,"fixableErrorCount":0,"fixableWarningCount":0,"source":"23","usedDeprecatedRules":"18"},{"filePath":"24","messages":"25","errorCount":0,"warningCount":3,"fixableErrorCount":0,"fixableWarningCount":0,"source":"26","usedDeprecatedRules":"18"},{"filePath":"27","messages":"28","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"18"},{"filePath":"29","messages":"30","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"31"},{"filePath":"32","messages":"33","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"18"},"/Users/lukeliu/Desktop/alan_ai/src/index.js",[],["34","35"],"/Users/lukeliu/Desktop/alan_ai/src/App.js",[],"/Users/lukeliu/Desktop/alan_ai/src/components/NewsCards/NewsCards.js",["36"],"import React from 'react';\nimport { Grid, Grow, Typography } from '@material-ui/core';\n\nimport useStyles from './styles.js';\nimport NewsCard from '../NewsCard/NewsCard';\n\nconst infoCards = [\n { color: '#00838f', title: 'Latest News', text: 'Give me the latest news' },\n { color: '#1565c0', title: 'News by Categories', info: 'Business, Entertainment, General, Health, Science, Sports, Technology', text: 'Give me the latest Technology news' },\n { color: '#4527a0', title: 'News by Terms', info: 'Bitcoin, PlayStation 5, Smartphones, Donald Trump...', text: 'What\\'s up with PlayStation 5' },\n { color: '#283593', title: 'News by Sources', info: 'CNN, Wired, BBC News, Time, IGN, Buzzfeed, ABC News...', text: 'Give me the news from CNN' },\n ];\n\nconst NewsCards = ({ articles, activeArticle }) => {\n\n const classes = useStyles();\n\n if (!articles.length) {\n return (\n <Grow in>\n <Grid className={classes.container} container alignItems=\"stretch\" spacing={3}>\n {infoCards.map((infoCard) => (\n <Grid item xs={12} sm={6} md={4} lg={3} className={classes.infoCard}>\n <div className={classes.card} style={{ backgroundColor: infoCard.color }}>\n <Typography variant=\"h5\">{infoCard.title}</Typography>\n { infoCard.info \n ? (<Typography variant=\"h6\">\n <strong>\n {infoCard.title.split(' ')[2]}:\n </strong>\n <br />\n {infoCard.info}\n </Typography>) : null}\n <Typography variant=\"h6\">Try saying: <br /> <i>{infoCard.text}</i></Typography>\n </div>\n\n </Grid>\n ))}\n </Grid>\n </Grow>\n )\n }\n\n return (\n <Grow in>\n <Grid className={classes.container} container alignItems=\"stretch\" spacing={3}>\n {articles.map((article, i) => (\n <Grid item item xs={12} sm={6} md={4} lg={3} style={{ display: 'flex' }}>\n <NewsCard article={article} activeArticle={activeArticle} i={i} />\n </Grid>\n ))}\n </Grid>\n </Grow>\n )\n};\n\nexport default NewsCards;\n","/Users/lukeliu/Desktop/alan_ai/src/components/NewsCard/NewsCard.js",["37","38","39"],"import React, { useState, useEffect, createRef } from 'react';\nimport { Card, CardActions, CardActionArea, CardContent, CardMedia, Button, Typography} from '@material-ui/core';\nimport classNames from 'classnames';\n\nimport useStyles from './styles.js';\n\nconst NewsCard = ({ article: { description, publishedAt, source, title, url, urlToImage }, i, activeArticle }) => {\n const classes = useStyles();\n\n return (\n <Card className={classNames(classes.card, activeArticle === i ? classes.activeCard : null)}>\n <CardActionArea href={url} target=\"_blank\">\n <CardMedia className={classes.media} image={urlToImage || 'https://www.industry.gov.au/sites/default/files/August%202018/image/news-placeholder-738.png'} />\n <div className={classes.details}>\n <Typography variant=\"body2\" color=\"textSecondary\" component=\"h2\">{(new Date(publishedAt)).toDateString()}</Typography>\n <Typography variant=\"body2\" color=\"textSecondary\" component=\"h2\">{source.name}</Typography>\n </div>\n <Typography className={classes.title} gutterBottom variant=\"h5\">{title}</Typography>\n <CardContent>\n <Typography variant=\"body2\" color=\"textSecondary\" component=\"p\">{description}</Typography>\n </CardContent>\n </CardActionArea>\n <CardActions className={classes.cardActions}>\n <Button size=\"small\" color=\"primary\">Learn More</Button>\n <Typography variant=\"h5\" color=\"textSecondary\">{i + 1}</Typography>\n </CardActions>\n </Card>\n )\n};\n\nexport default NewsCard;","/Users/lukeliu/Desktop/alan_ai/src/components/NewsCards/styles.js",[],"/Users/lukeliu/Desktop/alan_ai/src/components/NewsCard/styles.js",[],["40","41"],"/Users/lukeliu/Desktop/alan_ai/src/styles.js",[],{"ruleId":"42","replacedBy":"43"},{"ruleId":"44","replacedBy":"45"},{"ruleId":"46","severity":1,"message":"47","line":48,"column":32,"nodeType":"48","endLine":48,"endColumn":36},{"ruleId":"49","severity":1,"message":"50","line":1,"column":17,"nodeType":"51","messageId":"52","endLine":1,"endColumn":25},{"ruleId":"49","severity":1,"message":"53","line":1,"column":27,"nodeType":"51","messageId":"52","endLine":1,"endColumn":36},{"ruleId":"49","severity":1,"message":"54","line":1,"column":38,"nodeType":"51","messageId":"52","endLine":1,"endColumn":47},{"ruleId":"42","replacedBy":"55"},{"ruleId":"44","replacedBy":"56"},"no-native-reassign",["57"],"no-negated-in-lhs",["58"],"react/jsx-no-duplicate-props","No duplicate props allowed","JSXAttribute","no-unused-vars","'useState' is defined but never used.","Identifier","unusedVar","'useEffect' is defined but never used.","'createRef' is defined but never used.",["57"],["58"],"no-global-assign","no-unsafe-negation"]