Skip to content

Commit c535c71

Browse files
Marianne380manooweb
authored andcommitted
Fix ESLint
1 parent a0bdf4d commit c535c71

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ import {
55
createLanguage,
66
deleteLanguage,
77
} from './languages/index.js';
8-
import {
9-
saveTranslations,
10-
} from './translations/index.js';
8+
import { saveTranslations } from './translations/index.js';
119
import { resetAllSettings, setSetting, getSettings } from './settings/index.js';
1210
import {
1311
getAllTerms,

src/translations/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* @typedef {import('@wordpress/e2e-test-utils-playwright').RequestUtils} RequestUtils
3+
*/
4+
15
/**
26
* Saves the translations for a post.
37
*
@@ -11,7 +15,7 @@ export async function saveTranslations( requestUtils, id, translations = {} ) {
1115
path: `/wp/v2/posts/${ id }`,
1216
method: 'POST',
1317
data: {
14-
translations
18+
translations,
1519
},
1620
} );
1721
}

0 commit comments

Comments
 (0)