aboutsummaryrefslogtreecommitdiffstats
path: root/.eslintrc.cjs
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2022-01-27 23:48:07 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2022-02-08 21:43:18 +0100
commit785826a05e99c98aae872b909a833a691e4ae9fa (patch)
treed3c0099516852f312973967c621ac82f4d6b1d41 /.eslintrc.cjs
parentbuild: Add test-utils package (diff)
downloadsophie-785826a05e99c98aae872b909a833a691e4ae9fa.tar.gz
sophie-785826a05e99c98aae872b909a833a691e4ae9fa.tar.zst
sophie-785826a05e99c98aae872b909a833a691e4ae9fa.zip
test: Add tests for main window hardening
We try to stub/mock the Electron API to make sure the test environment is as close to the runtime environment for this security critical code. Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to '.eslintrc.cjs')
-rw-r--r--.eslintrc.cjs2
1 files changed, 2 insertions, 0 deletions
diff --git a/.eslintrc.cjs b/.eslintrc.cjs
index 55a055d..8f1451b 100644
--- a/.eslintrc.cjs
+++ b/.eslintrc.cjs
@@ -56,6 +56,8 @@ module.exports = {
56 'newlines-between': 'always', 56 'newlines-between': 'always',
57 }, 57 },
58 ], 58 ],
59 // jest-each confuses this rule.
60 'jest/no-standalone-expect': 'off',
59 // Allows files with names same as the name of their default export. 61 // Allows files with names same as the name of their default export.
60 'unicorn/filename-case': [ 62 'unicorn/filename-case': [
61 'error', 63 'error',