Skip to content

[ESLint] Eslint config & rules fixes - #695

Open
JulienVannier66 wants to merge 13 commits into
masterfrom
jv/pyx-418/eslint-config
Open

[ESLint] Eslint config & rules fixes#695
JulienVannier66 wants to merge 13 commits into
masterfrom
jv/pyx-418/eslint-config

Conversation

@JulienVannier66

Copy link
Copy Markdown
Contributor

What does this PR do?

Eslint config & rules fixes

What are the observable changes?

Good PR checklist

  • Title makes sense
  • Is against the correct branch
  • Only addresses one issue
  • Properly assigned
  • Added/updated tests
  • Added/updated documentation with Figma design link. Don't forget to replace "design" by "file" in the URL. For example https://www.figma.com/file/example
  • Migrated touched components to Glimmer Components
  • Properly labeled

@JulienVannier66 JulienVannier66 self-assigned this Jul 30, 2026
@linear-code

linear-code Bot commented Jul 30, 2026

Copy link
Copy Markdown

PYX-418

@JulienVannier66 JulienVannier66 changed the title Eslint config & rules fixes [ESLint] Eslint config & rules fixes Jul 31, 2026
<div
class="currency-selector fx-row fx-gap-px-12 fx-malign-space-between fx-xalign-center"
role={{if this.allowCurrencyUpdate "button" "img"}}
tabindex={{if this.allowCurrencyUpdate "0"}}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this required by an ESlint rule change ?

@JulienVannier66 JulienVannier66 Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, eslint rule required this one

{{else if this.feedbackMessage}}
<span class={{concat "margin-top-px-6 font-color-" this.feedbackMessage.type "-500"}}>
{{#unless (eq this.feedbackMessage.type "error")}}
{{#if (not-eq this.feedbackMessage.type "error")}}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good thing Edouard isn't here on this one 🧌

<div
class="fx-row fx-xalign-center fx-gap-px-6"
role={{if @mainAction "button"}}
tabindex={{if @mainAction "0"}}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another tabIndex here, my guess is that a rule requires this, you can disregard my first comment above I guess ^^

Comment thread addon/components/o-s-s/button.ts Outdated
}

if (this.args.loading && !this.args.loadingOptions?.showLabel) {
// The width must be frozen before the spinner replaces the label, hence the side-effect.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably can get rid of the comment above the TS-ignore :)

}

@computed('args.step.{displayState,hidden}')
@computed('args.step.{displayState,hidden}', 'baseClass')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is baseClass needed here ? Isn't that gonna recompute the getter way more than it should ?

Comment thread addon/utils/attach-dropdown.ts Outdated
}

let arrowEl = floatingTarget.querySelector('[data-floating-arrow]');
const arrowEl = floatingTarget.querySelector('[data-floating-arrow]');

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I be an a**hole & ask for renaming this into arrowElement ? 💀

// Implement the logic for step submission here
// For example, this can be bound to the submit button of an OSS::Form component
// we would then validate the inputs and resolve true or false based on the validations
resolve(true || false);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no words for this one 😆

Comment thread tests/dummy/app/components/storybook.ts Outdated
}

get storyComponent() {
// The class is a dynamic backing class filled in below, not a component file.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extra comment here

Comment thread tests/dummy/app/controllers/extra.ts Outdated
@action
onSelectionNavTab(selectedTab: {}): void {
onSelectionNavTab(selectedTab: object): void {
console.log('onSelectionNavTab : ', selectedTab);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're there, can you remove that console log ?

text-align: center;
}

.demo-outlet {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For other reviewers, this is added to avoid some styling in templates a few files down ( a few meaning 20 🧌 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants