swc/crates/swc_ecma_parser/tests/tsc/ts-expect-error-js.ts

11 lines
194 B
TypeScript
Raw Normal View History

// @allowJs: true
// @checkJs: true
// @noEmit: true
// @fileName: a.js
// there should be a "Unused @ts-expect-error" error since js files are being checked
// @ts-expect-error
const a = 1;