Repository navigation
v2.0.0
MAJOR: the base preset refuses the TypeScript syntax that Node cannot strip.
Breaking changes
base.jsonsetserasableSyntaxOnly. Each preset extends it. Thustscgives the error TS1294 for anenum, anamespacewith code, and a parameter property, for exampleconstructor(private x: number).- The reason: Node runs a
.tsfile only when it can strip the types. With such syntax,nodestops at the start withERR_UNSUPPORTED_TYPESCRIPT_SYNTAX, buttscandvitestaccept the file. On 2026-11-03 a parameter property stopped a scheduled run of a tool at the start, and its tests passed. - To update: change an
enumto an objectas constand a union type of its values. Change a parameter property to a field and an assignment in the constructor. - A package that cannot change sets
"erasableSyntaxOnly": falsein its owntsconfig.json. The rulecue-presetof@mark1russell7/conventionsreports it, so the package also keeps an exception with its reason. - The schema of a
tsconfig.jsonhas the optionerasableSyntaxOnly.