We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
FlatESLint
1 parent 6f35f1b commit ca5eb3eCopy full SHA for ca5eb3e
test/prettier.mjs
@@ -29,6 +29,7 @@ import eslintMdx from 'eslint-mdx';
29
const rule = eslintPluginPrettier.rules.prettier;
30
const RuleTester =
31
eslintUnsupportedApi.FlatRuleTester ?? eslintPackage.RuleTester;
32
+const ESLint = eslintUnsupportedApi.FlatESLint ?? eslintPackage.ESLint;
33
34
// ------------------------------------------------------------------------------
35
// Tests
@@ -443,8 +444,6 @@ let eslint;
443
444
*/
445
async function runFixture(pattern, asserts, skip) {
446
if (!eslint) {
- const ESLint = await eslintPackage.loadESLint();
447
-
448
eslint = new ESLint({
449
overrideConfigFile: true,
450
overrideConfig: [
0 commit comments