Skip to content

Commit 11c6e20

Browse files
committed
chore: remove 'upstream' references — describe behavior directly
1 parent f81b3a3 commit 11c6e20

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

lib/rules/template-no-passed-in-event-handlers.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
// Ember event handler names that map to Ember's classic event system.
2-
// Matches upstream ember-template-lint's no-passed-in-event-handlers list exactly.
32
// Note: mouseMove, mouseEnter, and mouseLeave are intentionally excluded —
4-
// upstream does not include them, as they are native DOM events that do not
5-
// have corresponding Ember classic-event aliases on components.
3+
// they are native DOM events that do not have corresponding Ember
4+
// classic-event aliases on components.
65
const EMBER_EVENTS = new Set([
76
'touchStart',
87
'touchMove',

tests/lib/rules/template-no-passed-in-event-handlers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ ruleTester.run('template-no-passed-in-event-handlers', rule, {
4040
'<template><my-button @click={{this.handleClick}} /></template>',
4141
'<template><custom-el @submit={{this.handleSubmit}} /></template>',
4242

43-
// mouseMove/mouseEnter/mouseLeave are NOT in upstream's event list
43+
// mouseMove/mouseEnter/mouseLeave are not Ember classic-event aliases
4444
'<template><Foo @mouseMove={{this.handleMove}} /></template>',
4545
'<template><Foo @mouseEnter={{this.handleEnter}} /></template>',
4646
'<template><Foo @mouseLeave={{this.handleLeave}} /></template>',

0 commit comments

Comments
 (0)