Files
renovate/lib/config/migrations/custom/compatibility-migration.ts
renovate[bot] 196101a6bb chore(deps): update dependency oxlint-tsgolint to v0.25.0 (main) (#44424)
* chore(deps): update dependency oxlint-tsgolint to v0.25.0

| datasource | package         | from   | to     |
| ---------- | --------------- | ------ | ------ |
| npm        | oxlint-tsgolint | 0.23.0 | 0.25.0 |

* chore: fix new no-unnecessary-type-assertion findings

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Poxhofer <sebastian.poxhofer@stedi.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-07-28 07:04:21 +00:00

14 lines
391 B
TypeScript

import { isObject } from '@sindresorhus/is';
import { AbstractMigration } from '../base/abstract-migration.ts';
export class CompatibilityMigration extends AbstractMigration {
override readonly deprecated = true;
override readonly propertyName = 'compatibility';
override run(value: unknown): void {
if (isObject(value)) {
this.setSafely('constraints', value);
}
}
}