diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2023-02-27 21:20:58 -0800 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2023-03-04 23:40:32 -0800 |
commit | 9d7b57221d405fda3a317949b4aadfa2d1116210 (patch) | |
tree | 799535ec3ad874cb82e1b98c838d99e238652e9a /installed-tests/js/modules/badOverrides2/.eslintrc.yml | |
parent | e9dfa02f1d7df0ef2155600633b833efb3fa5477 (diff) | |
download | gjs-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.yml | 8 |
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$ |