Thanks to visit codestin.com
Credit goes to github.com

Skip to content

no-output-native should handle new ouput() function #2004

Closed
@5im0n

Description

@5im0n
{
  "rules": {
  "@angular-eslint/no-output-native": [
      "error"
    ]
  }
}

✅ Valid Code

readonly click = output<KeyboardEvent>();

The code above should be invalid.

❌ Invalid Code

 @Output() readonly click = new EventEmitter();

Versions

package version
@angular-eslint/eslint-plugin-template 18.2.0
@angular-eslint/template-parser 18.2.0
@typescript-eslint/parser 7.18.0
ESLint 8.57.0
node 20.16.0
@angular-devkit/architect    0.1801.3
@angular-devkit/core         18.1.3
@angular-devkit/schematics   18.1.3
@schematics/angular          18.1.3
rxjs                         7.8.1
typescript                   5.5.4
zone.js                      0.14.10
  • [X ] I have tried restarting my IDE and the issue persists.
  • [ X] I have updated to the latest supported version of the packages and checked my ng version output per the instructions given here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PRs WelcomeIf a high-quality PR is created for this it will be acceptedpackage: eslint-pluginAngular-specific TypeScript rules

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions