I'm trying my hand at writing a simple TinyMCE plugin in Moodle 5.1
I've been following along on the https://moodledev.io/docs/5.1/apis/plugintypes/tiny documentation, which tells me in plugin.js to
export default new Promise(async(resolve) => {
Which then causes grunt to complain:
32:28 error Promise executor functions should not be async no-async-promise-executor
After a bit of googling, it seems that I have to disable eslint for that line:
// eslint-disable-next-line no-async-promise-executor
export default new Promise(async(resolve) => {
Should the documentation be updated on the moodledev site to explain grunt errors?