Skip to content

Latest commit

 

History

History
62 lines (44 loc) · 1.32 KB

File metadata and controls

62 lines (44 loc) · 1.32 KB

ember/template-no-invalid-meta

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

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

Disallow invalid meta tags.

Meta tags should use proper encoding (UTF-8) for consistent cross-browser behavior and internationalization support.

Rule Details

This rule enforces that meta charset tags use UTF-8 encoding.

Examples

Incorrect ❌

<template>
  <meta charset="iso-8859-1" />
</template>
<template>
  <meta charset="latin1" />
</template>
<template>
  <meta charset="windows-1252" />
</template>

Correct ✅

<template>
  <meta charset="utf-8" />
</template>
<template>
  <meta charset="UTF-8" />
</template>
<template>
  <meta name="viewport" content="width=device-width, initial-scale=1" />
</template>

References