Files
test-repo/tests/format/misc/errors/invalid-interface-extends/format.test.js
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
655 B
JavaScript
Raw Normal View History

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"],
);