Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 975 Bytes

File metadata and controls

45 lines (31 loc) · 975 Bytes

ember/template-no-builtin-form-components

💼 This rule is enabled in the following configs: strict-gjs, strict-gts.

Disallows usage of built-in form components.

Rule Details

Built-in Ember components like <Input> and <Textarea> should be replaced with native HTML elements for better performance and simpler code.

Examples

Examples of incorrect code for this rule:

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

Examples of correct code for this rule:

<template>
  <input type="text" />
</template>
<template>
  <textarea></textarea>
</template>

References