Skip to content

Latest commit

 

History

History
41 lines (25 loc) · 793 Bytes

File metadata and controls

41 lines (25 loc) · 793 Bytes

suitescript/no-extra-modules

Enforces an equal number of module literals and identifiers in the define call arguments.

Rule Details

✅ 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) {});

Version

This rule was introduced in version 1.0.0.

Source