Skip to content

Commit

Permalink
[Tests] namespace: add test case for #1818
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jun 11, 2020
1 parent f53e872 commit ec5195e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/src/rules/namespace.js
Expand Up @@ -152,6 +152,15 @@ const valid = [
'import/resolver': { 'eslint-import-resolver-typescript': true },
},
}),

test({
code: 'export = function name() {}',
parser: parser,
settings: {
'import/parsers': { [parser]: ['.ts'] },
'import/resolver': { 'eslint-import-resolver-typescript': true },
},
}),
]),

...SYNTAX_CASES,
Expand Down

0 comments on commit ec5195e

Please sign in to comment.