-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintcache
More file actions
1 lines (1 loc) · 3.52 KB
/
.eslintcache
File metadata and controls
1 lines (1 loc) · 3.52 KB
1
[{"/Users/chencehen/react-app/src/index.js":"1","/Users/chencehen/react-app/src/components/app/app.jsx":"2","/Users/chencehen/react-app/src/components/comment-list/comment-list.jsx":"3","/Users/chencehen/react-app/src/components/comment-add/comment-add.jsx":"4","/Users/chencehen/react-app/src/components/comment-iten/comment-item.jsx":"5"},{"size":179,"mtime":1607244135702,"results":"6","hashOfConfig":"7"},{"size":2037,"mtime":1608016094326,"results":"8","hashOfConfig":"7"},{"size":1193,"mtime":1608016094335,"results":"9","hashOfConfig":"7"},{"size":2139,"mtime":1607411873740,"results":"10","hashOfConfig":"7"},{"size":1020,"mtime":1608016094331,"results":"11","hashOfConfig":"7"},{"filePath":"12","messages":"13","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"vtt0pf",{"filePath":"14","messages":"15","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"16","messages":"17","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"usedDeprecatedRules":"18"},{"filePath":"19","messages":"20","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"21","messages":"22","errorCount":0,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":"23"},"/Users/chencehen/react-app/src/index.js",[],"/Users/chencehen/react-app/src/components/app/app.jsx",[],"/Users/chencehen/react-app/src/components/comment-list/comment-list.jsx",[],["24","25"],"/Users/chencehen/react-app/src/components/comment-add/comment-add.jsx",[],"/Users/chencehen/react-app/src/components/comment-iten/comment-item.jsx",["26","27"],"import React, {Component} from 'react'\nimport PropTypes from 'prop-types'\nimport PubSub from 'pubsub-js'\n\nimport './commentItem.css'\n\nexport default class CommentItem extends Component {\n\n static propTypes = {\n comment: PropTypes.object.isRequired,\n index: PropTypes.number.isRequired\n }\n\n handleClick = () => {\n const {comment, index} = this.props\n // 提示\n if(window.confirm(`确定删除${comment.username}的评论吗?`)) {\n // 确定后删除\n PubSub.publish('deleteComment', index)\n }\n }\n\n render(){\n\n const {comment} = this.props\n\n return(\n <li className=\"list-group-item\">\n <div className=\"handle\">\n <a href=\"javascript:;\" onClick={this.handleClick}>删除</a>\n </div>\n <p className=\"user\"><span>{comment.username}</span><span>说:</span></p>\n <p className=\"centence\">{comment.content}</p>\n </li>\n )\n }\n}",{"ruleId":"28","replacedBy":"29"},{"ruleId":"30","replacedBy":"31"},{"ruleId":"32","severity":1,"message":"33","line":30,"column":21,"nodeType":"34","endLine":30,"endColumn":71},{"ruleId":"35","severity":1,"message":"36","line":30,"column":29,"nodeType":"37","messageId":"38","endLine":30,"endColumn":43},"no-native-reassign",["39"],"no-negated-in-lhs",["40"],"jsx-a11y/anchor-is-valid","The href attribute requires a valid value to be accessible. Provide a valid, navigable address as the href value. If you cannot provide a valid href, but still need the element to resemble a link, use a button and change it with appropriate styles. Learn more: https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md","JSXOpeningElement","no-script-url","Script URL is a form of eval.","Literal","unexpectedScriptURL","no-global-assign","no-unsafe-negation"]