chore(site): align ESLint config to typescript-eslint's recommended-requiring-type-checking (#5797)

This commit is contained in:
Josh Goldberg
2023-01-26 10:32:50 -03:00
committed by GitHub
parent dd8eab5675
commit 43a441fe63
6 changed files with 27 additions and 20 deletions
+2 -4
View File
@@ -20,8 +20,7 @@ export const hardCodedCSRFCookie = (): string => {
export const withDefaultFeatures = (
fs: Partial<TypesGen.Entitlements["features"]>,
): TypesGen.Entitlements["features"] => {
for (const k in TypesGen.FeatureNames) {
const feature = k as TypesGen.FeatureName
for (const feature of TypesGen.FeatureNames) {
// Skip fields that are already filled.
if (fs[feature] !== undefined) {
continue
@@ -140,8 +139,7 @@ export const getTokens = async (): Promise<TypesGen.APIKey[]> => {
}
export const deleteAPIKey = async (keyId: string): Promise<void> => {
const response = await axios.delete("/api/v2/users/me/keys/" + keyId)
return response.data
await axios.delete("/api/v2/users/me/keys/" + keyId)
}
export const getUsers = async (