Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 786 Bytes

no-extra-modules.md

File metadata and controls

39 lines (25 loc) · 786 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