🔧 This rule is automatically fixable by the --fix CLI option.
Enforce where
<template>appears in classes in.gjs/.gtsfiles.
When using template tags in class bodies, keeping <template> in a consistent place makes components easier to scan.
This rule enforces that <template> appears either:
'after'class members (default)'before'class members
Examples of incorrect code with the default 'after' option:
class Demo extends Component {
<template>{{this.message}}</template>
message = 'hello';
}Examples of correct code with the default 'after' option:
class Demo extends Component {
message = 'hello';
<template>{{this.message}}</template>
}'after'(default):<template>comes after all other class members.'before':<template>comes before all other class members.