Files
babel/eslint/babel-eslint-tests/test/integration/duplicated-babel-parser.js
cca96f4eb1 [babel 8] Bump eslint parser deps (#14872)
* breaking: bump eslint-parser deps

* bump eslint dev deps

* Use `@nicolo-ribaudo/eslint-scope-5-internals`

* Fix tests relying on ESLint 7 API

* drop Node.js v10 test

* swap eslint with eslint-8

* chore: mark ecmaVersion as latest

* add parseForESLint7

* fix: forward the original rule in ESLint 8

* test: remove parseForESLint7

* remove dynamicESLintVersionCheck plugin

* Add eslint-7 test workflow

* cleanup parseAndAssertSame interface

* remove unreachable warning

Co-authored-by: Nicolò Ribaudo <[email protected]>
2022-09-14 01:18:41 +09:00

17 lines
458 B
JavaScript

import { ESLint } from "eslint";
import path from "path";
import { fileURLToPath } from "url";
describe("https://github.com/babel/babel/issues/12985", () => {
it("works with different copies of @babel/parser", async () => {
const engine = new ESLint({ ignore: false });
await engine.lintFiles(
path.resolve(
path.dirname(fileURLToPath(import.meta.url)),
`../fixtures/duplicated-babel-parser/a.js`,
),
);
});
});