| 1 | import { ESLint } from "eslint"; |
| 2 | import path from "path"; |
| 3 | import { fileURLToPath } from "url"; |
| 4 | |
| 5 | describe("https://github.com/babel/babel-eslint/issues/558", () => { |
| 6 | it("doesn't crash with eslint-plugin-import", async () => { |
| 7 | const engine = new ESLint({ ignore: false }); |
| 8 | |
| 9 | await engine.lintFiles( |
| 10 | ["a.js", "b.js", "c.js"].map(file => |
| 11 | path.resolve( |
| 12 | path.dirname(fileURLToPath(import.meta.url)), |
| 13 | `../fixtures/eslint-plugin-import/${file}`, |
| 14 | ), |
| 15 | ), |
| 16 | ); |
| 17 | }); |
| 18 | }); |