From dd51ad52cb049a6d8c8921831495061ccf31ab77 Mon Sep 17 00:00:00 2001 From: Chris Wilkinson Date: Thu, 24 Oct 2024 14:57:34 +0100 Subject: [PATCH] Allow us to notice incorrect imports quicker Refs #2017, bdda857672044b266bb6a8b7b59a87f7c7bf617d, 54ceaa15f6546a54fc504a8c8d8f823f70c4fef2 --- .eslintrc.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.eslintrc.json b/.eslintrc.json index 7f2f02a63..bd238544f 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -41,6 +41,12 @@ }, { "files": ["integration/**/*.ts", "test/**/*.ts", "visual-regression/**/*.ts"], + "rules": { + "import/no-internal-modules": ["error", { "forbid": ["**/assets/**/*"] }] + } + }, + { + "files": ["test/assets/**/*.ts"], "rules": { "import/no-internal-modules": "off" }