Skip to content

No Warn

ErrorRoblox
small-rules/no-warn

Use Log instead of warn().

Diagnostic Messages

noWarn
warn() is a raw output function lacking log levels, timestamps, and filtering. Production systems require structured logging for debugging and monitoring. Replace warn(...) with Log.

Configuration

This rule does not accept options.

{
"jsPlugins": [
"@pobammer-ts/small-rules"
],
"rules": {
"small-rules/no-warn": "error"
}
}

Examples

global warn call
warn('Hello');
logger warn call
Log.warn('Hello');