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/no-unused-vars": "off",
|
||||
"@typescript-eslint/no-use-before-define": "off",
|
||||
"@typescript-eslint/require-await": "off",
|
||||
"@typescript-eslint/camelcase": "off",
|
||||
// PropTypes
|
||||
"react/prop-types": 0,
|
||||
|
@@ -7,7 +7,11 @@ import { GlobalContext } from 'context';
|
||||
|
||||
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,
|
||||
endpoint: 'settings',
|
||||
action: 'setAuthorizedFromAddress',
|
||||
|
Reference in New Issue
Block a user