diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-07-17 10:07:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-17 10:07:30 +0200 |
commit | d5b076b2fc8988e9a3799ba7775f851e1a12cbb7 (patch) | |
tree | 3c0f98977cc487747efeeeb47974fc13e70eab97 /server/sonar-web/src/main/js/apps/tutorials/onboarding/AnalysisStep.js | |
parent | c8797aabc9b4d705f7da59b43717e5c0fe0e80fb (diff) | |
download | sonarqube-d5b076b2fc8988e9a3799ba7775f851e1a12cbb7.tar.gz sonarqube-d5b076b2fc8988e9a3799ba7775f851e1a12cbb7.zip |
upgrade prettier and remove prettier-eslint (#2254)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/tutorials/onboarding/AnalysisStep.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/tutorials/onboarding/AnalysisStep.js | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/server/sonar-web/src/main/js/apps/tutorials/onboarding/AnalysisStep.js b/server/sonar-web/src/main/js/apps/tutorials/onboarding/AnalysisStep.js index 497f104b304..a3b938727d6 100644 --- a/server/sonar-web/src/main/js/apps/tutorials/onboarding/AnalysisStep.js +++ b/server/sonar-web/src/main/js/apps/tutorials/onboarding/AnalysisStep.js @@ -81,9 +81,10 @@ export default class AnalysisStep extends React.PureComponent { ); }; - renderFormattedCommand = (...lines: Array<string>) => ( - <pre>{lines.join(' ' + '\\' + '\n' + ' ')}</pre> - ); + renderFormattedCommand = (...lines: Array<string>) => + <pre> + {lines.join(' ' + '\\' + '\n' + ' ')} + </pre>; renderCommand = () => { const { result } = this.state; @@ -107,21 +108,19 @@ export default class AnalysisStep extends React.PureComponent { } }; - renderCommandForMaven = () => ( + renderCommandForMaven = () => <JavaMaven host={this.getHost()} organization={this.props.organization} token={this.props.token} - /> - ); + />; - renderCommandForGradle = () => ( + renderCommandForGradle = () => <JavaGradle host={this.getHost()} organization={this.props.organization} token={this.props.token} - /> - ); + />; renderCommandForDotNet = () => { return ( @@ -147,7 +146,7 @@ export default class AnalysisStep extends React.PureComponent { ); }; - renderCommandForClangGCC = () => ( + renderCommandForClangGCC = () => <ClangGCC host={this.getHost()} organization={this.props.organization} @@ -156,10 +155,9 @@ export default class AnalysisStep extends React.PureComponent { // $FlowFixMe projectKey={this.state.result.projectKey} token={this.props.token} - /> - ); + />; - renderCommandForOther = () => ( + renderCommandForOther = () => <Other host={this.getHost()} organization={this.props.organization} @@ -168,8 +166,7 @@ export default class AnalysisStep extends React.PureComponent { // $FlowFixMe projectKey={this.state.result.projectKey} token={this.props.token} - /> - ); + />; renderResult = () => null; |