Michail_04
@Michail_04

Как включить импорт до фала, а не до Index?

Есть три файла

1.ts - export const testA = 1;

index.ts - export * from './1'

2.ts - import * from '.'

Когда я сохраняю 2.ts vscode добавляет импорт до index.

Нужно что бы он добавлял import * from '.' transform to import * from './2'

my settings.js

{
"git.ignoreWindowsGit27Warning": true,
"git.autofetch": true,
"angular.experimental-ivy": true,
"files.autoSave": "afterDelay",
"git.enableSmartCommit": true,
"explorer.confirmDragAndDrop": false,
"typescript.updateImportsOnFileMove.enabled": "always",
"explorer.confirmDelete": false,
"workbench.editor.untitled.hint": "hidden",
"workbench.startupEditor": "none",
"javascript.preferences.quoteStyle": "single",
"typescript.preferences.includePackageJsonAutoImports": "on",
"eslint.enable": true,
"eslint.format.enable": true,
"javascript.suggest.autoImports": true,
"editor.codeActionsOnSave": {
"source.addMissingImports": true,
"source.fixAll.eslint": true,
"source.organizeImports": true
},
"typescript.preferences.importModuleSpecifier": "relative"
}
  • Вопрос задан
  • 17 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы