Remove @typescript-eslint/require-await rule exception
[MAILPOET-3201]
This commit is contained in:
@@ -40,7 +40,6 @@
|
|||||||
"@typescript-eslint/unbound-method": "off",
|
"@typescript-eslint/unbound-method": "off",
|
||||||
"@typescript-eslint/no-unused-vars": "off",
|
"@typescript-eslint/no-unused-vars": "off",
|
||||||
"@typescript-eslint/no-use-before-define": "off",
|
"@typescript-eslint/no-use-before-define": "off",
|
||||||
"@typescript-eslint/require-await": "off",
|
|
||||||
"@typescript-eslint/camelcase": "off",
|
"@typescript-eslint/camelcase": "off",
|
||||||
// PropTypes
|
// PropTypes
|
||||||
"react/prop-types": 0,
|
"react/prop-types": 0,
|
||||||
|
@@ -7,7 +7,11 @@ import { GlobalContext } from 'context';
|
|||||||
|
|
||||||
const mailPoetApiVersion = (window as any).mailpoet_api_version as string;
|
const mailPoetApiVersion = (window as any).mailpoet_api_version as string;
|
||||||
|
|
||||||
const handleSave = async (address: string | null) => MailPoet.Ajax.post({
|
/**
|
||||||
|
* @param {string|null} address
|
||||||
|
* @returns {Promise}
|
||||||
|
*/
|
||||||
|
const handleSave = (address: string | null) => MailPoet.Ajax.post({
|
||||||
api_version: mailPoetApiVersion,
|
api_version: mailPoetApiVersion,
|
||||||
endpoint: 'settings',
|
endpoint: 'settings',
|
||||||
action: 'setAuthorizedFromAddress',
|
action: 'setAuthorizedFromAddress',
|
||||||
|
Reference in New Issue
Block a user