mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-20 09:20:16 +00:00
Update prettier to latest. Remove tslint (#1641)
* Rev up prettier * Reformat * Remove deprecated tslint * Remove call to tslint and update package-lock.json
This commit is contained in:
@@ -17,7 +17,10 @@ export class NewMongoShellTab extends TabsBase {
|
||||
public iMongoShellTabComponentProps: IMongoShellTabComponentProps;
|
||||
public iMongoShellTabAccessor: IMongoShellTabAccessor;
|
||||
|
||||
constructor(options: TabOptions, private props: IMongoShellTabProps) {
|
||||
constructor(
|
||||
options: TabOptions,
|
||||
private props: IMongoShellTabProps,
|
||||
) {
|
||||
super(options);
|
||||
this.iMongoShellTabComponentProps = {
|
||||
collection: this.collection,
|
||||
|
||||
@@ -79,7 +79,7 @@ export default class MongoShellTabComponent extends Component<
|
||||
}
|
||||
|
||||
const shellIframe: HTMLIFrameElement = document.getElementById(
|
||||
this.props.tabsBaseInstance.tabId
|
||||
this.props.tabsBaseInstance.tabId,
|
||||
) as HTMLIFrameElement;
|
||||
|
||||
if (!shellIframe) {
|
||||
@@ -115,7 +115,7 @@ export default class MongoShellTabComponent extends Component<
|
||||
documentEndpoint.substr(
|
||||
Constants.MongoDBAccounts.protocol.length + 3,
|
||||
documentEndpoint.length -
|
||||
(Constants.MongoDBAccounts.protocol.length + 2 + Constants.MongoDBAccounts.defaultPort.length)
|
||||
(Constants.MongoDBAccounts.protocol.length + 2 + Constants.MongoDBAccounts.defaultPort.length),
|
||||
) + Constants.MongoDBAccounts.defaultPort.toString();
|
||||
const databaseId = this.props.collection.databaseId;
|
||||
const collectionId = this.props.collection.id();
|
||||
@@ -137,7 +137,7 @@ export default class MongoShellTabComponent extends Component<
|
||||
apiEndpoint: apiEndpoint,
|
||||
},
|
||||
},
|
||||
targetOrigin
|
||||
targetOrigin,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ describe("getMongoShellOrigin", () => {
|
||||
"feature.enableLegacyMongoShellV1Debug": "false",
|
||||
"feature.enableLegacyMongoShellV2Debug": "false",
|
||||
"feature.loadLegacyMongoShellFromBE": "false",
|
||||
})
|
||||
}),
|
||||
),
|
||||
});
|
||||
});
|
||||
@@ -29,7 +29,7 @@ describe("getMongoShellOrigin", () => {
|
||||
features: extractFeatures(
|
||||
new URLSearchParams({
|
||||
"feature.enableLegacyMongoShellV1": "true",
|
||||
})
|
||||
}),
|
||||
),
|
||||
});
|
||||
|
||||
@@ -41,7 +41,7 @@ describe("getMongoShellOrigin", () => {
|
||||
features: extractFeatures(
|
||||
new URLSearchParams({
|
||||
"feature.enableLegacyMongoShellV2": "true",
|
||||
})
|
||||
}),
|
||||
),
|
||||
});
|
||||
|
||||
@@ -53,7 +53,7 @@ describe("getMongoShellOrigin", () => {
|
||||
features: extractFeatures(
|
||||
new URLSearchParams({
|
||||
"feature.enableLegacyMongoShellV1Debug": "true",
|
||||
})
|
||||
}),
|
||||
),
|
||||
});
|
||||
|
||||
@@ -65,7 +65,7 @@ describe("getMongoShellOrigin", () => {
|
||||
features: extractFeatures(
|
||||
new URLSearchParams({
|
||||
"feature.enableLegacyMongoShellV2Debug": "true",
|
||||
})
|
||||
}),
|
||||
),
|
||||
});
|
||||
|
||||
@@ -77,7 +77,7 @@ describe("getMongoShellOrigin", () => {
|
||||
features: extractFeatures(
|
||||
new URLSearchParams({
|
||||
"feature.loadLegacyMongoShellFromBE": "true",
|
||||
})
|
||||
}),
|
||||
),
|
||||
});
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ describe("getMongoShellUrl", () => {
|
||||
"feature.enableLegacyMongoShellV1Debug": "false",
|
||||
"feature.enableLegacyMongoShellV2Debug": "false",
|
||||
"feature.loadLegacyMongoShellFromBE": "false",
|
||||
})
|
||||
}),
|
||||
),
|
||||
portalEnv: "prod",
|
||||
});
|
||||
@@ -64,7 +64,7 @@ describe("getMongoShellUrl", () => {
|
||||
features: extractFeatures(
|
||||
new URLSearchParams({
|
||||
"feature.enableLegacyMongoShellV1": "true",
|
||||
})
|
||||
}),
|
||||
),
|
||||
});
|
||||
|
||||
@@ -76,7 +76,7 @@ describe("getMongoShellUrl", () => {
|
||||
features: extractFeatures(
|
||||
new URLSearchParams({
|
||||
"feature.enableLegacyMongoShellV2": "true",
|
||||
})
|
||||
}),
|
||||
),
|
||||
});
|
||||
|
||||
@@ -88,7 +88,7 @@ describe("getMongoShellUrl", () => {
|
||||
features: extractFeatures(
|
||||
new URLSearchParams({
|
||||
"feature.enableLegacyMongoShellV1Debug": "true",
|
||||
})
|
||||
}),
|
||||
),
|
||||
});
|
||||
|
||||
@@ -100,7 +100,7 @@ describe("getMongoShellUrl", () => {
|
||||
features: extractFeatures(
|
||||
new URLSearchParams({
|
||||
"feature.enableLegacyMongoShellV2Debug": "true",
|
||||
})
|
||||
}),
|
||||
),
|
||||
});
|
||||
|
||||
@@ -119,7 +119,7 @@ describe("getMongoShellUrl", () => {
|
||||
features: extractFeatures(
|
||||
new URLSearchParams({
|
||||
"feature.loadLegacyMongoShellFromBE": "true",
|
||||
})
|
||||
}),
|
||||
),
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user