summaryrefslogtreecommitdiff
path: root/installed-tests/js/modules/badOverrides2/.eslintrc.yml
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2023-02-27 21:20:58 -0800
committerPhilip Chimento <philip.chimento@gmail.com>2023-03-04 23:40:32 -0800
commit9d7b57221d405fda3a317949b4aadfa2d1116210 (patch)
tree799535ec3ad874cb82e1b98c838d99e238652e9a /installed-tests/js/modules/badOverrides2/.eslintrc.yml
parente9dfa02f1d7df0ef2155600633b833efb3fa5477 (diff)
downloadgjs-9d7b57221d405fda3a317949b4aadfa2d1116210.tar.gz
repo: Check that GI module override function is callable
Previously, we would return the override function if it was null, or a non-callable object, and then try to call it. Add tests for this case.
Diffstat (limited to 'installed-tests/js/modules/badOverrides2/.eslintrc.yml')
-rw-r--r--installed-tests/js/modules/badOverrides2/.eslintrc.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/installed-tests/js/modules/badOverrides2/.eslintrc.yml b/installed-tests/js/modules/badOverrides2/.eslintrc.yml
new file mode 100644
index 00000000..b1c10f5d
--- /dev/null
+++ b/installed-tests/js/modules/badOverrides2/.eslintrc.yml
@@ -0,0 +1,8 @@
+---
+# SPDX-License-Identifier: MIT OR LGPL-2.0-or-later
+# SPDX-FileCopyrightText: 2018 Philip Chimento <philip.chimento@gmail.com>
+rules:
+ no-throw-literal: 'off' # these are intended to be bad code
+ no-unused-vars:
+ - error
+ - varsIgnorePattern: ^_init$