-
Notifications
You must be signed in to change notification settings - Fork 0
Add support to order token and replace eslint with biome #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for replacing the :token placeholder in organization configuration URLs and updates the linting setup by replacing ESLint with Biome.
- Adds a new token property to configuration and enhances placeholder replacement logic
- Updates type definitions and refactors import/quote styles in multiple files
- Updates and adds test cases and benchmarks, and revises project configuration (package.json and biome.json)
Reviewed Changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/organization-config/src/testHelper.ts | Introduces default and override configurations with URL templates |
| packages/organization-config/src/schema/types.ts | Updates type definitions formatting and semicolon usage |
| packages/organization-config/src/schema/generate.js | Refactors import syntax and quote styles in schema generation |
| packages/organization-config/src/index.ts | Adjusts exports from getMfeConfig modules |
| packages/organization-config/src/getMfeConfig.ts | Adds support for a new token parameter in placeholder replacement |
| packages/organization-config/src/getMfeConfig.test.ts | Updates tests to verify token replacement and other URL placeholders |
| packages/organization-config/src/getMfeConfig.benchmark.ts | Benchmarks merging utilities with updated configuration |
| packages/organization-config/package.json | Replaces ESLint with Biome and bumps dependency versions |
| packages/organization-config/biome.json | Adds the new Biome configuration file |
| }, | ||
| { | ||
| value: "US", | ||
| label: "Unites States of America", |
Copilot
AI
May 8, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The label for the US appears to be misspelled ('Unites' should be 'United'). Please correct it for clarity.
| label: "Unites States of America", | |
| label: "United States of America", |
| export type Url = string | ||
| /** | ||
| * The international 2-letter country code as defined by the ISO 3166-1 standard. | ||
| */ | ||
| export type CountryCode = string; | ||
| export type CountryCode = string | ||
| /** | ||
| * List of billing countries by identifier and label. | ||
| */ | ||
| export type StateCountry = { | ||
| value: CountryCode; | ||
| value: CountryCode | ||
| /** | ||
| * Name of the country. | ||
| */ | ||
| label: string; | ||
| }[]; | ||
| label: string | ||
| }[] | ||
| /** | ||
| * List of shipping countries by identifier and label. | ||
| */ | ||
| export type StateCountry1 = { | ||
| value: CountryCode; | ||
| value: CountryCode | ||
| /** | ||
| * Name of the country. | ||
| */ | ||
| label: string; | ||
| }[]; | ||
| label: string |
Copilot
AI
May 8, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] Consider using consistent semicolon usage (or omit them consistently) in type declarations to match the rest of the codebase's style.
57e3391 to
968b424
Compare
968b424 to
af00be8
Compare
Closes #51
What I did
How to test
Checklist