diff options
author | Marco Ambrosini <marcoambrosini@pm.me> | 2020-03-24 08:48:09 +0300 |
---|---|---|
committer | Marco Ambrosini <marcoambrosini@pm.me> | 2020-03-24 12:16:37 +0300 |
commit | c349e7ebbb165a08b2905763f456adedd6c8f785 (patch) | |
tree | 47ebfdba96e0d2cd6437f82fce78df68c648f844 /.eslintrc.js | |
parent | 962a44a9b25397d929ae79965f4ea25f6c04ab21 (diff) |
Allow tests in the /src folder
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 17 |
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"] + }] + } } |