From bbcedd02baa053a88688a82fc72e87c857c82db2 Mon Sep 17 00:00:00 2001 From: dhb52 <dhb52@126.com> Date: 星期三, 03 一月 2024 11:40:39 +0800 Subject: [PATCH] fix: 修复vscode全局属性ts爆红问题 参照vuejs官方文档,[扩展全局属性](https://cn.vuejs.org/guide/typescript/options-api.html#augmenting-global-properties), --- commitlint.config.js | 40 ++++++++++++++++++++-------------------- 1 files changed, 20 insertions(+), 20 deletions(-) diff --git a/commitlint.config.js b/commitlint.config.js index 21c37d7..3b75ed5 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1,22 +1,22 @@ module.exports = { - extends: ['@commitlint/config-conventional'], - rules: { - 'type-enum': [ - 2, - 'always', - [ - 'feat', // 鏂板姛鑳� feature - 'fix', // 淇 bug - 'docs', // 鏂囨。娉ㄩ噴 - 'style', // 浠g爜鏍煎紡 - 'refactor', // 閲嶆瀯 - 'perf', // 鎬ц兘浼樺寲 - 'test', // 澧炲姞娴嬭瘯 - 'chore', // 鏋勫缓杩囩▼鎴栬緟鍔╁伐鍏风殑鍙樺姩 - 'revert', // 鍥為�� - 'build' // 鎵撳寘 - ] - ], - 'subject-case': [0] - } + extends: ['@commitlint/config-conventional'], + rules: { + 'type-enum': [ + 2, + 'always', + [ + 'feat', // 鏂板姛鑳� feature + 'fix', // 淇 bug + 'docs', // 鏂囨。娉ㄩ噴 + 'style', // 浠g爜鏍煎紡 + 'refactor', // 閲嶆瀯 + 'perf', // 鎬ц兘浼樺寲 + 'test', // 澧炲姞娴嬭瘯 + 'chore', // 鏋勫缓杩囩▼鎴栬緟鍔╁伐鍏风殑鍙樺姩 + 'revert', // 鍥為�� + 'build' // 鎵撳寘 + ] + ], + 'subject-case': [0] + } }; -- Gitblit v1.9.3