diff --git a/dashboard/src/components/AppList/AppListItem.tsx b/dashboard/src/components/AppList/AppListItem.tsx index d604ccae90b..345f949393b 100644 --- a/dashboard/src/components/AppList/AppListItem.tsx +++ b/dashboard/src/components/AppList/AppListItem.tsx @@ -28,7 +28,9 @@ class AppListItem extends React.Component<IAppListItemProps> { </p> <div> <span - className={`ChartListItem__content__info_repo type-small type-color-white padding-t-tiny padding-h-normal`} + className={ + "ChartListItem__content__info_repo type-small type-color-white padding-t-tiny padding-h-normal" + } > {app.namespace} </span> diff --git a/dashboard/src/components/ChartList/ChartList.tsx b/dashboard/src/components/ChartList/ChartList.tsx index 3b34f99e671..097a0252d9e 100644 --- a/dashboard/src/components/ChartList/ChartList.tsx +++ b/dashboard/src/components/ChartList/ChartList.tsx @@ -48,7 +48,7 @@ class ChartList extends React.Component<IChartListProps, IChartListState> { children={ <div> Manage your Helm chart repositories in Kubeapps by visiting the{" "} - <Link to={`/config/repos`}>App repositories configuration</Link> page. + <Link to={"/config/repos"}>App repositories configuration</Link> page. </div> } /> diff --git a/dashboard/src/components/ChartList/ChartListItem.tsx b/dashboard/src/components/ChartList/ChartListItem.tsx index 2e112b71458..521cf5d0d48 100644 --- a/dashboard/src/components/ChartList/ChartListItem.tsx +++ b/dashboard/src/components/ChartList/ChartListItem.tsx @@ -19,7 +19,7 @@ class ChartListItem extends React.Component<IChartListItemProps> { const latestAppVersion = chart.relationships.latestChartVersion.data.app_version; return ( <Card key={`${repo}/${name}`} responsive={true} className="ChartListItem"> - <Link to={`/charts/` + chart.id} title={name}> + <Link to={"/charts/" + chart.id} title={name}> <CardIcon icon={iconSrc} /> <CardContent> <div className="ChartListItem__content"> diff --git a/dashboard/src/components/ChartView/ChartDeployButton.test.tsx b/dashboard/src/components/ChartView/ChartDeployButton.test.tsx index c5c8c935678..3eceb22686b 100644 --- a/dashboard/src/components/ChartView/ChartDeployButton.test.tsx +++ b/dashboard/src/components/ChartView/ChartDeployButton.test.tsx @@ -39,6 +39,6 @@ it("renders a redirect when the button is clicked", () => { expect(redirect.exists()).toBe(true); expect(redirect.props()).toMatchObject({ push: true, - to: `/apps/ns/test/new/testrepo/test/versions/1.2.3`, + to: "/apps/ns/test/new/testrepo/test/versions/1.2.3", }); }); diff --git a/dashboard/src/components/ChartView/ChartHeader.test.tsx b/dashboard/src/components/ChartView/ChartHeader.test.tsx index 1b8f88f7ff5..716101967b7 100644 --- a/dashboard/src/components/ChartView/ChartHeader.test.tsx +++ b/dashboard/src/components/ChartView/ChartHeader.test.tsx @@ -17,7 +17,7 @@ it("renders a header for the chart", () => { expect(wrapper.text()).toContain("A Test Chart"); const repoLink = wrapper.find(Link); expect(repoLink.exists()).toBe(true); - expect(repoLink.props()).toMatchObject({ to: `/charts/testrepo`, children: "testrepo" }); + expect(repoLink.props()).toMatchObject({ to: "/charts/testrepo", children: "testrepo" }); expect(wrapper.find(ChartIcon).exists()).toBe(true); expect(wrapper).toMatchSnapshot(); }); diff --git a/dashboard/src/components/DeploymentForm/DeploymentErrors.tsx b/dashboard/src/components/DeploymentForm/DeploymentErrors.tsx index a5c7ada2cce..753f71a573c 100644 --- a/dashboard/src/components/DeploymentForm/DeploymentErrors.tsx +++ b/dashboard/src/components/DeploymentForm/DeploymentErrors.tsx @@ -26,7 +26,7 @@ class DeploymentErrors extends React.Component<IDeploymentErrorProps> { case AppConflict: return ( <NotFoundErrorAlert - header={`The given release name already exists in the cluster. Choose a different one`} + header={"The given release name already exists in the cluster. Choose a different one"} /> ); case ForbiddenError: diff --git a/dashboard/src/components/ErrorAlert/ServiceCatalogNotInstalledAlert.tsx b/dashboard/src/components/ErrorAlert/ServiceCatalogNotInstalledAlert.tsx index 51bda8721ee..15e32ae9ad3 100644 --- a/dashboard/src/components/ErrorAlert/ServiceCatalogNotInstalledAlert.tsx +++ b/dashboard/src/components/ErrorAlert/ServiceCatalogNotInstalledAlert.tsx @@ -15,7 +15,7 @@ class ServiceCatalogNotInstalledAlert extends React.Component { </a>{" "} to browse, provision and manage external services within Kubeapps. </p> - <Link className="button button-primary button-small" to={`/charts/svc-cat/catalog`}> + <Link className="button button-primary button-small" to={"/charts/svc-cat/catalog"}> Install Catalog </Link> </div> diff --git a/dashboard/src/components/ProvisionButton/index.tsx b/dashboard/src/components/ProvisionButton/index.tsx index aba229e9970..1d6bf50ff7b 100644 --- a/dashboard/src/components/ProvisionButton/index.tsx +++ b/dashboard/src/components/ProvisionButton/index.tsx @@ -191,7 +191,7 @@ class ProvisionButton extends React.Component<IProvisionButtonProps, IProvisionB <PermissionsErrorAlert namespace={namespace} roles={RequiredRBACRoles} - action={`provision Service Instance`} + action={"provision Service Instance"} /> ); case NotFoundError: diff --git a/dashboard/src/components/UpgradeForm/SelectRepoForm.tsx b/dashboard/src/components/UpgradeForm/SelectRepoForm.tsx index 206dbfb303f..e408d40453a 100644 --- a/dashboard/src/components/UpgradeForm/SelectRepoForm.tsx +++ b/dashboard/src/components/UpgradeForm/SelectRepoForm.tsx @@ -90,7 +90,7 @@ class SelectRepoForm extends React.Component<ISelectRepoFormProps, ISelectRepoFo <PermissionsErrorAlert namespace={this.props.kubeappsNamespace} roles={[this.requiredRBACRoles()]} - action={`view App Repositories`} + action={"view App Repositories"} /> ); } diff --git a/dashboard/src/shared/url.ts b/dashboard/src/shared/url.ts index b1dfe83109d..4e57d88c56a 100644 --- a/dashboard/src/shared/url.ts +++ b/dashboard/src/shared/url.ts @@ -12,7 +12,7 @@ export const app = { export const api = { apprepostories: { - base: `/api/kube/apis/kubeapps.com/v1alpha1`, + base: "/api/kube/apis/kubeapps.com/v1alpha1", create: (namespace = "default") => `${api.apprepostories.base}/namespaces/${namespace}/apprepositories`, }, @@ -31,13 +31,13 @@ export const api = { }, serviceinstances: { - base: `/api/kube/apis/servicecatalog.k8s.io/v1beta1`, + base: "/api/kube/apis/servicecatalog.k8s.io/v1beta1", create: (namespace = "default") => `${api.serviceinstances.base}/namespaces/${namespace}/serviceinstances`, }, clusterservicebrokers: { - base: `/api/kube/apis/servicecatalog.k8s.io/v1beta1`, + base: "/api/kube/apis/servicecatalog.k8s.io/v1beta1", sync: (broker: IServiceBroker) => `${api.clusterservicebrokers.base}/clusterservicebrokers/${broker.metadata.name}`, }, diff --git a/dashboard/tslint.ci.json b/dashboard/tslint.ci.json index 862cf634792..d82008cd5cb 100644 --- a/dashboard/tslint.ci.json +++ b/dashboard/tslint.ci.json @@ -3,7 +3,8 @@ "extends": ["tslint:recommended", "tslint-react", "tslint-config-prettier"], "jsRules": {}, "rules": { - "object-literal-sort-keys": false + "object-literal-sort-keys": false, + "quotemark": [true, "avoid-template", "avoid-escape"] }, "rulesDirectory": [] } diff --git a/dashboard/tslint.json b/dashboard/tslint.json index ff3cb53d478..f575c611268 100644 --- a/dashboard/tslint.json +++ b/dashboard/tslint.json @@ -6,7 +6,8 @@ "no-console": { "severity": "warning" }, - "object-literal-sort-keys": false + "object-literal-sort-keys": false, + "quotemark": [true, "avoid-template", "avoid-escape"] }, "rulesDirectory": [] }