@so1ve/eslint-plugin 0.121.0 → 0.121.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -328,10 +328,10 @@ const noInlineTypeImport = createEslintRule({
|
|
|
328
328
|
const defaultImportSpecifierText = sourceCode.getText(
|
|
329
329
|
defaultImportSpecifier
|
|
330
330
|
);
|
|
331
|
-
const
|
|
331
|
+
const defaultAndValueSpecifiersText = defaultImportSpecifier ? `import ${defaultImportSpecifierText}, { ${valueSpecifiersText} } from "${node.source.value}";` : `import { ${valueSpecifiersText} } from "${node.source.value}";`;
|
|
332
332
|
const texts = [
|
|
333
333
|
`import type { ${typeSpecifiersText} } from "${node.source.value}";`,
|
|
334
|
-
|
|
334
|
+
defaultAndValueSpecifiersText
|
|
335
335
|
];
|
|
336
336
|
return fixer.replaceText(node, texts.join("\n"));
|
|
337
337
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -326,10 +326,10 @@ const noInlineTypeImport = createEslintRule({
|
|
|
326
326
|
const defaultImportSpecifierText = sourceCode.getText(
|
|
327
327
|
defaultImportSpecifier
|
|
328
328
|
);
|
|
329
|
-
const
|
|
329
|
+
const defaultAndValueSpecifiersText = defaultImportSpecifier ? `import ${defaultImportSpecifierText}, { ${valueSpecifiersText} } from "${node.source.value}";` : `import { ${valueSpecifiersText} } from "${node.source.value}";`;
|
|
330
330
|
const texts = [
|
|
331
331
|
`import type { ${typeSpecifiersText} } from "${node.source.value}";`,
|
|
332
|
-
|
|
332
|
+
defaultAndValueSpecifiersText
|
|
333
333
|
];
|
|
334
334
|
return fixer.replaceText(node, texts.join("\n"));
|
|
335
335
|
}
|