From f1d5b8c11981013d6c91bca0ca2ab1f3ad5e1c47 Mon Sep 17 00:00:00 2001 From: Gareth Jones Date: Tue, 3 Sep 2024 15:35:25 +1200 Subject: [PATCH] temp: error --- tests/src/rule-tester.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/src/rule-tester.js b/tests/src/rule-tester.js index d9d97acb2..4ba026472 100644 --- a/tests/src/rule-tester.js +++ b/tests/src/rule-tester.js @@ -29,6 +29,10 @@ export class FlatCompatRuleTester { return config; } + if ('env' in config) { + throw new Error("this config has an 'env' property, which won't work with the flat config"); + } + const obj = { languageOptions: { parserOptions: {} }, };