if (browserSupportNode &&!(translatorType &type.web)) context.report(browserSupportNode, `browserSupport set, but translatorType (${translatorType}) does not include web (${type.web})`);
for (const [f, mode] of [[doWeb, 'Web'], [doDetect, 'Import'], [doImport, 'Import'], [doExport, 'Export']]) {
constbit= type[mode.toLowerCase()];
if (f &&!(translatorType & bit)) {
context.report(f, `do${mode} present, but translatorType (${translatorType}) does not specify ${mode.toLowerCase()} (${bit})`);
for (constnameof ['detectWeb', 'doWeb', 'detectImport', 'doImport', 'doExport']) {
0 comments on commit
a6a8426