Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 777 Bytes

no-amd-name.md

File metadata and controls

33 lines (19 loc) · 777 Bytes

suitescript/no-amd-name

🔧 The --fix option on the command line can automatically fix some of the problems reported by this rule.

Restricts naming of AMD modules.

Naming AMD modules should generally be avoided because compilers will handle the ID-ing of modules internally where necessary.

Rule Details

✅ The following pattern is correct:

/* eslint suitescript/no-amd-name: "error" */

define([], function() {});

❌ The following pattern is incorrect:

/* eslint suitescript/no-amd-name: "error" */

define('myModule', [], function() {});

Version

This rule was introduced in version 1.0.0.

Source