You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Example code that triggers this linter rule, as of v11.11.0.
importComponentfrom'@glimmer/component';import{tracked}from'@glimmer/tracking';/** Component to view, filter, and select tags in a dropdown.@class QuestionsFilter@arg {Boolean} availableTags - The available list of tags to filter.@arg {Array} selectedTags - The list of tags that are selected.@extends {Component}*/exportdefaultclassQuestionsFilterextendsComponent{// {Boolean} showTagDropdown - True if the tag dropdown should be shown.
@trackedshowTagDropdown=false;}
importComponentfrom'@glimmer/component';import{guidFor}from'@ember/object/internals';/** A component to ask a user to select, enter or upload samples.@class {TableBuilderComponent}@extends {Component}*/exportdefaultclassTableBuilderComponentextendsComponent{/** A unique id for this component.@property guid@type {String} */guid=guidFor(this);}
importComponentfrom'@glimmer/component';import{tracked}from'@glimmer/tracking';/** Typeset in MathJax 2 and 4.@class {MathJax2And4}@extends {Component}*/exportdefaultclassMathJax2And4extendsComponent{// @property {String} input The input to typeset.
@trackedinput='';}
importComponentfrom'@glimmer/component';import{injectasservice}from'@ember/service';/** Chevron. Used in a variety of settings to show activity completion.@class Chevron@arg {Boolean} check - Denotes whether or not chevron should show a check inside. Does not work if outline is set to true.@arg {Boolean} fade - Denotes whether the chevron should be filled in with an alpha version of the color. Only makes sense when |filled| is set to true.@arg {Boolean} filled - Indicates if chevron should be filled in with color denoted by |color|.@arg {Boolean} letter - Letter to stick in chevron. There are no checks for anything other than one letter so proceed at your own risk.@arg {Boolean} outline - Indicates if we should show an outline around the chevron. Cannot be used in conjunction with |check|.@arg {Boolean} size - Indicates size of chevron. Valid values include 'small', 'medium', and 'large'. Setting any other value will revert chevron back to 'large'.@extends {GlimmerComponent}*/exportdefaultclassChevronextendsComponent{// @property {AccessibilityToggleService} accessibleToggle - A service to see if the student turned on accessibility.
@serviceaccessibleToggle;// eslint-disable-line ember/no-unused-services}
The text was updated successfully, but these errors were encountered:
neilthawani
changed the title
eslint-plugin-ember@11.11.0 results in
eslint-plugin-ember@11.11.0 detects single-line components as zero-line components
Aug 21, 2023
For components with one property, the linter mistakenly thinks they are empty and triggers this rule:
https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/no-empty-glimmer-component-classes.md
Example code that triggers this linter rule, as of v11.11.0.
The text was updated successfully, but these errors were encountered: