aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/tutorials
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2019-03-25 14:10:40 +0100
committersonartech <sonartech@sonarsource.com>2019-03-29 09:44:59 +0100
commit1355d080cfa97eadfde70e6945e30f49a38ac28e (patch)
tree2e5b41f5898b00249f51bfd5b5267580c2e1b2ae /server/sonar-web/src/main/js/apps/tutorials
parenta289d7ab1248e465064129dc0e4b8d858fee2b79 (diff)
downloadsonarqube-1355d080cfa97eadfde70e6945e30f49a38ac28e.tar.gz
sonarqube-1355d080cfa97eadfde70e6945e30f49a38ac28e.zip
Update prettier to last version
* Prettier format all modules
Diffstat (limited to 'server/sonar-web/src/main/js/apps/tutorials')
-rw-r--r--server/sonar-web/src/main/js/apps/tutorials/routes.ts5
-rw-r--r--server/sonar-web/src/main/js/apps/tutorials/utils.ts2
2 files changed, 3 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/js/apps/tutorials/routes.ts b/server/sonar-web/src/main/js/apps/tutorials/routes.ts
index 7dd394424c5..d779c891054 100644
--- a/server/sonar-web/src/main/js/apps/tutorials/routes.ts
+++ b/server/sonar-web/src/main/js/apps/tutorials/routes.ts
@@ -23,9 +23,8 @@ import { isSonarCloud } from '../../helpers/system';
const routes = [
{
indexRoute: {
- component: lazyLoad(
- () =>
- isSonarCloud() ? import('./onboarding/OnboardingPage') : import('./ProjectOnboardingPage')
+ component: lazyLoad(() =>
+ isSonarCloud() ? import('./onboarding/OnboardingPage') : import('./ProjectOnboardingPage')
)
}
}
diff --git a/server/sonar-web/src/main/js/apps/tutorials/utils.ts b/server/sonar-web/src/main/js/apps/tutorials/utils.ts
index 59d9e9c75d2..d689b874efd 100644
--- a/server/sonar-web/src/main/js/apps/tutorials/utils.ts
+++ b/server/sonar-web/src/main/js/apps/tutorials/utils.ts
@@ -39,6 +39,6 @@ export function isLanguageConfigured(config?: LanguageConfig) {
return isJavaConfigured || isDotNetConfigured || isCFamilyConfigured || isOtherConfigured;
}
-export function quote(os: string): ((s: string) => string) {
+export function quote(os: string): (s: string) => string {
return os === 'win' ? (s: string) => `"${s}"` : (s: string) => s;
}