Skip to content

ember-upf-utils uses the shared ESLint config - #476

Open
edouardmisset wants to merge 6 commits into
masterfrom
cd-255
Open

ember-upf-utils uses the shared ESLint config#476
edouardmisset wants to merge 6 commits into
masterfrom
cd-255

Conversation

@edouardmisset

Copy link
Copy Markdown
Contributor

What does this PR do?

Migrates ember-upf-utils to use the shared ESLint config (@upfluence/w-conf) and fixes the resulting lint issues.

Related to: #PYX-417

What are the observable changes?

No user-facing changes. The project now lints using the shared w-conf ESLint flat config instead of the legacy .eslintrc setup.

🧑‍💻 Developer Heads Up

N/A

Good PR checklist

  • Title makes sense
  • Is against the correct branch
  • Only addresses one issue
  • Properly assigned
  • Added/updated tests
  • Added/updated documentation
  • Migrated touched components to Glimmer Components
  • Properly labeled

@edouardmisset
edouardmisset requested review from a team and phndiaye as code owners July 27, 2026 14:36
@edouardmisset
edouardmisset requested review from OwenCoogan and olxmpe and removed request for a team July 27, 2026 14:36
@edouardmisset edouardmisset self-assigned this Jul 27, 2026
Comment thread addon-test-support/services/autocomplete-handler.ts
Comment thread eslint.config.mjs Outdated
Comment thread eslint.config.mjs Outdated
Comment thread addon-test-support/services/autocomplete-handler.ts
@linear-code

linear-code Bot commented Jul 28, 2026

Copy link
Copy Markdown

PYX-417


module('Callback functionality', () => {
test('callback is called with parsed address data', async function (assert) {
assert.expect(1);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why remove this? (same for other occurrences)

import { type AutocompletionAddress } from '@upfluence/ember-upf-utils/modifiers/setup-autocomplete';

const ADDRESS_COMPONENT_TYPES = [
export const ADDRESS_COMPONENT_TYPES = [

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

why start exporting this?

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.

Darn, I had hoped no-one was gonna notice...
I took the easy way out because the const was unused...
So the question becomes:

  • Do we want to "future-proof" and assume the array is gonna be used at some point?
  • Do we remove the array and inline the type directly?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Haha nope! we see everything :p

But it's used L18 in type AddressComponentType = (typeof ADDRESS_COMPONENT_TYPES)[number]; so is the linter lying to us?

Comment on lines +92 to +93
this.selectedIcon = this.args.icon;
this.selectedColor = this.args.color;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

beware of this one, can you run it as a link upfluence-web and see how logo makers work? should be in the campaign setup to setup the campaign logo.

Sometimes Ember doesn't like setting up tracked in the ctor because it can have race conditions between "constructing" & "rendering" stages

Comment thread addon/components/utils/utm-link-builder.ts Outdated
Comment thread addon/configuration.ts Outdated
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.

4 participants