RequireJS provides these methods as a way to generate a url that is relative to a module. Some third-party module loaders such as Almond, do not support the use of these functions.
The following patterns are considered warnings:
define(['require'], function (require) {
var cssUrl = require.toUrl('./style.css');
/* ... */
});
define(['require'], function (require) {
var idUrl = require.nameToUrl('id');
/* ... */
});
If you are not using Almond, then it is safe to disable this rule.