Skip to content

Commit

Permalink
Enforce use of Eslint parser
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbonnet committed Mar 24, 2021
1 parent 383b394 commit 2448a96
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/src/rules/no-unresolved.js
Expand Up @@ -32,8 +32,9 @@ function runResolverTests(resolver) {
rest({ code: "import('fs');",
parser: require.resolve('babel-eslint') }),

// check without babel parser
// check with eslint parser
rest({ code: "import('fs');",
parser: require.resolve('espree'),
parserOptions: { ecmaVersion: 12 } }),

rest({ code: 'import * as foo from "a"' }),
Expand Down Expand Up @@ -135,13 +136,14 @@ function runResolverTests(resolver) {
errors: ["Unable to resolve path to module './does-not-exist'."],
}),

// check without babel parser
// check with eslint parser
rest({
code: "import('in-alternate-root').then(function({DEEP}){});",
errors: [{ message: 'Unable to resolve path to ' +
"module 'in-alternate-root'.",
type: 'Literal',
}],
parser: require.resolve('espree'),
parserOptions: { ecmaVersion: 12 } }),

// export symmetry proposal
Expand Down

0 comments on commit 2448a96

Please sign in to comment.