From 98833a62196f134775c8a2171f238e08c3d812be Mon Sep 17 00:00:00 2001 From: kirillgroshkov Date: Sun, 21 Jul 2024 14:42:10 +0200 Subject: [PATCH] fix: vue rules --- cfg/eslint-vue-rules.js | 2 ++ cfg/eslint.config.js | 1 + src/test/cfg/eslint.config.dump.json | 4 ++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cfg/eslint-vue-rules.js b/cfg/eslint-vue-rules.js index ae2f58d..ee01084 100644 --- a/cfg/eslint-vue-rules.js +++ b/cfg/eslint-vue-rules.js @@ -48,5 +48,7 @@ module.exports = { 'vue/v-for-delimiter-style': [2, 'of'], 'vue/valid-define-options': 2, 'vue/eqeqeq': 2, + 'vue/require-explicit-emits': 2, + 'vue/require-prop-types': 2, }, } diff --git a/cfg/eslint.config.js b/cfg/eslint.config.js index 7bc7c06..8b12f29 100644 --- a/cfg/eslint.config.js +++ b/cfg/eslint.config.js @@ -32,6 +32,7 @@ module.exports = [ parserOptions: { project: 'tsconfig.json', parser: tseslint.parser, + extraFileExtensions: ['.vue', '.html'], }, }, plugins: getConfig().plugins, diff --git a/src/test/cfg/eslint.config.dump.json b/src/test/cfg/eslint.config.dump.json index 4f1ca1a..ec300f4 100644 --- a/src/test/cfg/eslint.config.dump.json +++ b/src/test/cfg/eslint.config.dump.json @@ -2051,7 +2051,7 @@ 2 ], "vue/require-explicit-emits": [ - 1 + 2 ], "vue/require-expose": [ 2 @@ -2063,7 +2063,7 @@ 2 ], "vue/require-prop-types": [ - 1 + 2 ], "vue/require-render-return": [ 2