Drop Biome.js for oxfmt and oxlint

This commit is contained in:
Hugo Alliaume
2026-02-03 22:43:43 +01:00
parent 2254e170c4
commit 359e337791
9 changed files with 66 additions and 62 deletions

View File

@@ -1,5 +1,4 @@
Please do not submit any Pull Requests here. They will be closed.
---
## Please do not submit any Pull Requests here. They will be closed.
Please submit your PR here instead:
https://github.com/symfony/ux

View File

@@ -1,3 +1,3 @@
branches: ["2.x"]
maintained_branches: ["2.x"]
doc_dir: "doc"
branches: ['2.x']
maintained_branches: ['2.x']
doc_dir: 'doc'

View File

@@ -13,6 +13,7 @@
- And you can still get autocompletion and type-safety :rocket:
**Before:**
```typescript
import { trans } from '@symfony/ux-translator';
import { SYMFONY_GREAT } from '@app/translations';
@@ -21,6 +22,7 @@
```
**After:**
```typescript
import { createTranslator } from '@symfony/ux-translator';
import { messages } from '../var/translations/index.js';
@@ -38,6 +40,7 @@
for further reducing bundle size.
**For AssetMapper users:** You can remove the following entries from your `importmap.php`:
```php
'@app/translations' => [
'path' => './var/translations/index.js',
@@ -49,7 +52,8 @@
**Note:** This is a breaking change, but the UX Translator component is still experimental.
- **[BC BREAK]** Refactor `TranslationsDumper` to accept configuration options via `dump()` method parameters, instead of constructor arguments or method calls:
- **[BC BREAK]** Refactor `TranslationsDumper` to accept configuration options via `dump()` method parameters,
instead of constructor arguments or method calls:
- Removed `$dumpDir` and `$dumpTypeScript` constructor arguments
- Removed `TranslationsDumper::addIncludedDomain()` and `TranslationsDumper::addExcludedDomain()` methods

View File

@@ -9,6 +9,7 @@ This npm package is **reserved for advanced users** who want to decouple their J
We **strongly recommend not installing this package directly**, but instead install the PHP package [symfony/ux-translator](https://packagist.org/packages/symfony/ux-translator) in your Symfony application with [Flex](https://github.com/symfony/flex) enabled.
If you still want to install this package directly, please make sure its version exactly matches [symfony/ux-translator](https://packagist.org/packages/symfony/ux-translator) PHP package version:
```shell
composer require symfony/ux-translator:2.23.0
npm add @symfony/ux-translator@2.23.0

View File

@@ -9,7 +9,8 @@ type ParametersType = Record<string, string | number | Date> | NoParametersType;
type RemoveIntlIcuSuffix<T> = T extends `${infer U}+intl-icu` ? U : T;
type DomainsOf<M> = M extends Message<infer Translations, LocaleType> ? keyof Translations : never;
type LocaleOf<M> = M extends Message<TranslationsType, infer Locale> ? Locale : never;
type ParametersOf<M, D extends DomainType> = M extends Message<infer Translations, LocaleType>
type ParametersOf<M, D extends DomainType> =
M extends Message<infer Translations, LocaleType>
? Translations[D] extends { parameters: infer Parameters }
? Parameters
: never

View File

@@ -20,9 +20,7 @@
"test": "pnpm run test:unit && pnpm run test:browser",
"test:unit": "../../../bin/unit_test_package.sh .",
"test:browser": "playwright test",
"test:browser:ui": "playwright test --ui",
"check": "biome check",
"ci": "biome ci"
"test:browser:ui": "playwright test --ui"
},
"symfony": {
"importmap": {

View File

@@ -9,7 +9,8 @@ export type ParametersType = Record<string, string | number | Date> | NoParamete
export type RemoveIntlIcuSuffix<T> = T extends `${infer U}+intl-icu` ? U : T;
export type DomainsOf<M> = M extends Message<infer Translations, LocaleType> ? keyof Translations : never;
export type LocaleOf<M> = M extends Message<TranslationsType, infer Locale> ? Locale : never;
export type ParametersOf<M, D extends DomainType> = M extends Message<infer Translations, LocaleType>
export type ParametersOf<M, D extends DomainType> =
M extends Message<infer Translations, LocaleType>
? Translations[D] extends { parameters: infer Parameters }
? Parameters
: never