refactor: Lint for no unneeded backticks (#5057) (no-changelog)
* ✨ Create rule `no-unneeded-backticks` * 👕 Enable rule * ⚡ Run rule on `cli` * ⚡ Run rule on `core` * ⚡ Run rule on `workflow` * ⚡ Rule rule on `design-system` * ⚡ Run rule on `node-dev` * ⚡ Run rule on `editor-ui` * ⚡ Run rule on `nodes-base`
This commit is contained in:
@@ -29,7 +29,7 @@ export async function createNewCredential(
|
||||
context: IRestApiContext,
|
||||
data: ICredentialsDecrypted,
|
||||
): Promise<ICredentialsResponse> {
|
||||
return makeRestApiRequest(context, 'POST', `/credentials`, data as unknown as IDataObject);
|
||||
return makeRestApiRequest(context, 'POST', '/credentials', data as unknown as IDataObject);
|
||||
}
|
||||
|
||||
export async function deleteCredential(context: IRestApiContext, id: string): Promise<boolean> {
|
||||
@@ -61,7 +61,7 @@ export async function oAuth1CredentialAuthorize(
|
||||
return makeRestApiRequest(
|
||||
context,
|
||||
'GET',
|
||||
`/oauth1-credential/auth`,
|
||||
'/oauth1-credential/auth',
|
||||
data as unknown as IDataObject,
|
||||
);
|
||||
}
|
||||
@@ -74,7 +74,7 @@ export async function oAuth2CredentialAuthorize(
|
||||
return makeRestApiRequest(
|
||||
context,
|
||||
'GET',
|
||||
`/oauth2-credential/auth`,
|
||||
'/oauth2-credential/auth',
|
||||
data as unknown as IDataObject,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user