[ { "filePath":"C:\\Tools\\Jenkins\\workspace\\FunctionalTesting\\myproject\\app\\src\\indexOne.ts", "messages":[ { "ruleId":"indent", "severity":2, "message":"Expected indentation of 4 spaces but found 2.", "line":7, "column":1, "nodeType":"Keyword", "source":" super(props);", "endLine":7, "endColumn":3, "fix":{ "range":[ 181, 183 ], "text":" " } }, { "ruleId":"indent", "severity":2, "message":"Expected indentation of 4 spaces but found 2.", "line":8, "column":1, "nodeType":"Keyword", "source":" this.state = {};", "endLine":8, "endColumn":3, "fix":{ "range":[ 198, 200 ], "text":" " } }, { "ruleId":"indent", "severity":2, "message":"Expected indentation of 4 spaces but found 1 tab.", "line":12, "column":1, "nodeType":"Keyword", "source":"\tconst {title} = this.props;", "endLine":12, "endColumn":2, "fix":{ "range":[ 239, 240 ], "text":" " } }, { "ruleId":"no-unused-vars", "severity":2, "message":"'title' is assigned a value but never used.", "line":12, "column":9, "nodeType":"Identifier", "source":"\tconst {title} = this.props;", "endLine":12, "endColumn":14 }, { "ruleId":"jsx-a11y/alt-text", "severity":2, "message":"img elements must have an alt prop, either with meaningful text, or an empty string for decorative images.", "line":14, "column":7, "nodeType":"JSXOpeningElement", "source":" ", "endLine":14, "endColumn":20 }, { "ruleId":"indent", "severity":2, "message":"Expected indentation of 0 spaces but found 2.", "line":27, "column":1, "nodeType":"Punctuator", "source":" };", "endLine":27, "endColumn":3, "fix":{ "range":[ 475, 477 ], "text":"" } } ], "errorCount":6, "warningCount":0, "fixableErrorCount":4, "fixableWarningCount":0, "source":"import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport './styles/styles.css';\r\n\r\nexport default class HelloWorld extends React.Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = {};\r\n }\r\n\r\n render() {\r\n\tconst {title} = this.props;\r\n return (\r\n \r\n );\r\n }\r\n}\r\n\r\n// Proptypes\r\nHelloWorld.propTypes = {\r\n title: PropTypes.string.isRequired\r\n};\r\n\r\n// Default proptypes\r\nHelloWorld.defaultProps = {\r\n title: 'Hello'\r\n };\r\n" } ]