🔧 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.
✅ 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() {});
This rule was introduced in version 1.0.0.