From ec5fdada5be7ad4e948f0d4c3f500dcd96d9d85e Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Fri, 2 Jul 2021 21:47:09 +0900 Subject: [PATCH 1/2] Update `vue/require-prop-type-constructor` rule to support ` + `, + output: ` + + `, + parser: require.resolve('vue-eslint-parser'), + errors: [ + { + message: 'The "a" property should be a constructor.', + line: 5 + } + ] } ] }) From 844b3a76466927e5c3c40f672e7f354f9c16dd73 Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Sat, 3 Jul 2021 00:03:37 +0900 Subject: [PATCH 2/2] fix tsc error --- lib/rules/require-prop-type-constructor.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rules/require-prop-type-constructor.js b/lib/rules/require-prop-type-constructor.js index f453bea85..f22da8118 100644 --- a/lib/rules/require-prop-type-constructor.js +++ b/lib/rules/require-prop-type-constructor.js @@ -10,6 +10,7 @@ const { isDef } = require('../utils') /** * @typedef {import('../utils').ComponentArrayProp} ComponentArrayProp * @typedef {import('../utils').ComponentObjectProp} ComponentObjectProp + * @typedef {import('../utils').ComponentTypeProp} ComponentTypeProp */ // ------------------------------------------------------------------------------ @@ -81,7 +82,7 @@ module.exports = { ) } - /** @param {(ComponentArrayProp | ComponentObjectProp)[]} props */ + /** @param {(ComponentArrayProp | ComponentObjectProp | ComponentTypeProp)[]} props */ function verifyProps(props) { for (const prop of props) { if (!prop.value || prop.propName == null) {