diff options
author | Devlin Junker <devlin.junker@gmail.com> | 2022-10-26 20:32:50 -0700 |
---|---|---|
committer | Benjamin Brahmer <info@b-brahmer.de> | 2022-11-02 11:27:20 +0100 |
commit | 2be4f2836996d51a3695d0e621ff1702a64308b7 (patch) | |
tree | eb093799ea40b54414c54d899721d7b2a2241d5b /.eslintrc.js | |
parent | 6557bb28732e03f3831b9c4ebce64346ce9695f5 (diff) |
use newer libraries and clean up eslint
Signed-off-by: Devlin Junker <devlin.junker@gmail.com>
Diffstat (limited to '.eslintrc.js')
-rw-r--r-- | .eslintrc.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/.eslintrc.js b/.eslintrc.js index 3a85ff92d..5e4e91f29 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,3 +1,5 @@ +import path from 'path'; + module.exports = { root: true, parser: 'vue-eslint-parser', @@ -11,11 +13,12 @@ module.exports = { jest: true, }, rules: { - // frustratingly this seems to error for all imports right now... - 'n/no-missing-import': 'off', - - // need to warn on these because @nextcloud repeats some component names (Button, Content..) - 'vue/no-reserved-component-names': 'warn', + 'n/no-missing-import': { + resolvePaths: [ + path.resolve(__dirname, '/src/'), + path.resolve(__dirname, '/node_modules/') + ], + }, }, extends: [ 'eslint:recommended', |