Files
test-repo/tests/format/misc/errors/invalid-interface-extends/format.test.js
T
renovate[bot]andfisker 61e6fbc0ec chore(deps): update typescript-eslint to v8.34.0 (#17585)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2025-06-10 04:55:03 +08:00

23 lines
655 B
JavaScript

runFormatTest(
{
importMeta: import.meta,
snippets: [
// https://github.com/typescript-eslint/typescript-eslint/pull/11271
// https://github.com/prettier/prettier/issues/17376
// ParenthesizedExpression
"interface A extends (typeof fs) { }",
// ElementAccessExpression
"interface B extends C['D'] { }",
// OptionalChain
"interface E extends F?.G { }",
// multiple extends
"interface H extends I extends J { }",
// NumericLiteral
"interface K extends 2 { }",
// nested CallExpression
"interface L extends M().N { }",
],
},
["typescript", "babel-ts"],
);