summaryrefslogtreecommitdiffstats
path: root/.eslintrc.js
diff options
context:
space:
mode:
authorMarco Ambrosini <marcoambrosini@pm.me>2020-03-24 06:48:09 +0100
committerMarco Ambrosini <marcoambrosini@pm.me>2020-03-24 10:16:37 +0100
commitc349e7ebbb165a08b2905763f456adedd6c8f785 (patch)
tree47ebfdba96e0d2cd6437f82fce78df68c648f844 /.eslintrc.js
parent962a44a9b25397d929ae79965f4ea25f6c04ab21 (diff)
Allow tests in the /src folder
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js17
1 files changed, 16 insertions, 1 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index 701f97a6e..bc3e64524 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,5 +1,20 @@
module.exports = {
extends: [
'nextcloud'
- ]
+ ],
+ /**
+ * Allow jest syntax in the src folder
+ */
+ env: {
+ jest: true
+ },
+ /**
+ * Allow shallow import of @vue/test-utils in order to be able to use it in
+ * the src folder
+ */
+ rules: {
+ "node/no-unpublished-import": ["error", {
+ "allowModules": ["@vue/test-utils"]
+ }]
+ }
}