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]>
19 lines
518 B
JavaScript
19 lines
518 B
JavaScript
import { ESLint } from "eslint";
|
|
import path from "path";
|
|
import { fileURLToPath } from "url";
|
|
|
|
describe("https://github.com/babel/babel-eslint/issues/558", () => {
|
|
it("doesn't crash with eslint-plugin-import", async () => {
|
|
const engine = new ESLint({ ignore: false });
|
|
|
|
await engine.lintFiles(
|
|
["a.js", "b.js", "c.js"].map(file =>
|
|
path.resolve(
|
|
path.dirname(fileURLToPath(import.meta.url)),
|
|
`../fixtures/eslint-plugin-import/${file}`,
|
|
),
|
|
),
|
|
);
|
|
});
|
|
});
|