Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 842 Bytes

File metadata and controls

43 lines (30 loc) · 842 Bytes

ember/template-no-unknown-arguments-for-builtin-components

Disallow unknown arguments for built-in Ember components.

Rule Details

This rule checks that only known arguments are used with built-in Ember components like <Input>, <Textarea>, and <LinkTo>.

Examples

Examples of incorrect code for this rule:

<template>
  <Input @unknownArg="value" />
</template>
<template>
  <Textarea @invalidProp={{this.value}} />
</template>

Examples of correct code for this rule:

<template>
  <Input @type="text" @value={{this.value}} />
</template>
<template>
  <Textarea @value={{this.text}} @rows="10" />
</template>

References