mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-02 10:33:39 +00:00
196101a6bb
* 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>
14 lines
391 B
TypeScript
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);
|
|
}
|
|
}
|
|
}
|