no-output-decorator
May 10, 2026 · View on GitHub
Restrict the usage of @Output().
Use the output() version instead
Note
Technically, this rule is not related to signals and zoneless, but is for consistency with input().
Documentation
Configuration
- in the recommended preset (see the README for the configuration)
- or just this rule:
{
"rules": {
"angular-eslint-zoneless/no-output-decorator": "error"
}
}
❌ Invalid
@Component()
export class SomeComponent {
@Output() readonly selected = new EventEmitter<boolean>();
}
✅ Valid
@Component()
export class SomeComponent {
readonly selected = output<boolean>();
}