Enforces an equal number of module literals and identifiers in the define
call arguments.
✅ The following patterns are correct:
/* eslint suitescript/no-extra-modules: "error" */
define([], function() {});
/* eslint suitescript/no-extra-modules: "error" */
define(['N/search'], function(search) {});
❌ The following patterns are incorrect:
/* eslint suitescript/no-extra-modules: "error" */
define(['N/file'], function(file, record) {});
/* eslint suitescript/no-extra-modules: "error" */
define(['N/file', 'N/record'], function(file) {});
This rule was introduced in version 1.0.0.