mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
* 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]>
17 lines
458 B
JavaScript
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`,
|
|
),
|
|
);
|
|
});
|
|
});
|