mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore(site): align ESLint config to typescript-eslint's recommended-requiring-type-checking (#5797)
This commit is contained in:
+2
-4
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user