refactor: Patch to adjust consistent-type-imports (no-changelog) (#6057)

📦 Patch dependency
This commit is contained in:
Iván Ovejero
2023-04-21 15:09:56 +02:00
committed by GitHub
parent a19d4447ac
commit dc2a7a307a
3 changed files with 23 additions and 5 deletions

View File

@@ -0,0 +1,13 @@
diff --git a/dist/rules/consistent-type-imports.js b/dist/rules/consistent-type-imports.js
index fe6eaf80a1285b62ed93b0c32b74c889788c5164..de4e2ca30c131948e030b7d6dbce4ff50e3eff26 100644
--- a/dist/rules/consistent-type-imports.js
+++ b/dist/rules/consistent-type-imports.js
@@ -87,6 +87,8 @@ exports.default = util.createRule({
ImportDeclaration(node) {
var _a;
const source = node.source.value;
+ if (source.endsWith('.vue')) return;
+
// sourceImports is the object containing all the specifics for a particular import source, type or value
const sourceImports = (_a = sourceImportsMap[source]) !== null && _a !== void 0 ? _a : (sourceImportsMap[source] = {
source,