Skip to content

Commit

Permalink
Add tests of TypeScript' "export import" for newline-after-import
Browse files Browse the repository at this point in the history
  • Loading branch information
be5invis committed Jun 19, 2020
1 parent 354e6f0 commit ebe225d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/src/rules/newline-after-import.js
Expand Up @@ -213,6 +213,23 @@ ruleTester.run('newline-after-import', require('rules/newline-after-import'), {
parser: parser,
parserOptions: { ecmaVersion: 2015, sourceType: 'module' },
},
{
code: `
export import a = obj;\nf(a);
`,
parser: parser,
parserOptions: { ecmaVersion: 2015, sourceType: 'module' },
},
{
code: `
import { a } from "./a";
export namespace SomeNamespace {
export import a2 = a;
f(a);
}`,
parser: parser,
parserOptions: { ecmaVersion: 2015, sourceType: 'module' },
},
]),
],

Expand Down

0 comments on commit ebe225d

Please sign in to comment.