Problem Description
I'm trying my hand at writing a simple TinyMCE plugin in Moodle 5.1I've been following along on thehttps://moodledev.io/docs/5.1/apis/plugintypes/tinydocumentation, which tells me in plugin.js toexportdefaultnewPromise(async(resolve)=>{Which then causes grunt to complain:32:28errorPromise executor functions should not be asyncno-async-promise-executorAfter a bit of googling, it seems that I have to disable eslint for that line:// eslint-disable-next-line no-async-promise-executorexportdefaultnewPromise(async(resolve)=>{Should the documentation be updated on the moodledev site to explain grunt errors?
AI-Generated Solution
Powered by LMSouq AI · GPT-4.1-mini
Analyzing problem and generating solution…
Was this solution helpful?