From b4ea065c1d9da58e8b5f86185ae65fbc552ea194 Mon Sep 17 00:00:00 2001 From: Torgeir S <80778551+Gramatus@users.noreply.github.com> Date: Sun, 15 Sep 2024 10:45:30 +0000 Subject: [PATCH] reapply eslint to tests, still supporting jest The full test suite failed because it tried to lint the tests, while the running linter did not do the same. Enabling linting gave errors due to jest having undef stuff, but overriding these files for jest env keeps the linting without these errors. --- .eslintrc.json | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 84dd1b73..7c9e3f26 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -12,5 +12,12 @@ }, "rules": { }, - "ignorePatterns": ["test/**/*.js"] + "overrides": [ + { + "files": ["test/**/*.js"], + "env": { + "jest": true + } + } + ] }