Not filling out the template, just providing a code-snippet and then trying to fix it.
import { readFileSync } from "fs";
import * as path from "path";
import { PackageJson } from "type-fest";
import {
isHCAPackageRegexp,
HCA_PACKAGE_DEFAULT_PREFIX as HCA_PACKAGE_DEFAULT_PREFIX_,
// @ts-expect-error
} from "./PackageDefsJS";
When formatting this, // @ts-expect-error gets deleted! You can replicate this if you add it as a test-case in tests/ImportCommentsPreserved/
Not filling out the template, just providing a code-snippet and then trying to fix it.
When formatting this,
// @ts-expect-error
gets deleted! You can replicate this if you add it as a test-case intests/ImportCommentsPreserved/