{"id":48076918,"url":"https://github.com/depthbomb/import-authority","last_synced_at":"2026-04-04T14:50:46.099Z","repository":{"id":345334085,"uuid":"1185477479","full_name":"depthbomb/import-authority","owner":"depthbomb","description":"Opinionated import organizer for JavaScript and TypeScript in VS Code.","archived":false,"fork":false,"pushed_at":"2026-03-27T16:40:37.000Z","size":3588,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-28T01:23:59.087Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/depthbomb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-18T16:14:37.000Z","updated_at":"2026-03-27T16:38:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/depthbomb/import-authority","commit_stats":null,"previous_names":["depthbomb/import-authority"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/depthbomb/import-authority","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depthbomb%2Fimport-authority","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depthbomb%2Fimport-authority/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depthbomb%2Fimport-authority/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depthbomb%2Fimport-authority/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/depthbomb","download_url":"https://codeload.github.com/depthbomb/import-authority/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depthbomb%2Fimport-authority/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31403718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-04-04T14:50:45.428Z","updated_at":"2026-04-04T14:50:46.086Z","avatar_url":"https://github.com/depthbomb.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Import Authority\n\nOpinionated import organizer for JavaScript and TypeScript in VS Code.\n\n**Get the extension [here](https://marketplace.visualstudio.com/items?itemName=CaprineLogic.import-authority)!**\n\n## Commands\n\n- `Organize Imports`: applies rules directly to the active document.\n- `Preview Organized Imports`: opens a diff preview without modifying your file.\n\n## Behavior\n\nWhen you run `Organize Imports`, the extension enforces these rules by default:\n\n- Import declarations are sorted by full line length (ascending).\n- Imports with a default or namespace (`* as`) binding are placed below plain named imports, then sorted by length.\n- `import type ...` declarations are placed below non-type imports.\n- Named imports are rewritten to a single line and sorted by name length.\n- Mixed named imports like `{ A, type B }` are split into separate declarations.\n- Duplicate imports from the same module are merged per value/type bucket.\n- Import-adjacent leading comments are preserved and move with their import.\n\n## Settings\n\n- `importAuthority.sorting.placeTypeImportsLast` (`true`): place type imports after non-type imports.\n- `importAuthority.sorting.placeDefaultAndNamespaceImportsLast` (`true`): place default/namespace imports after plain named imports.\n- `importAuthority.sorting.duplicateImportPolicy` (`always` | `namedOnly` | `never`): duplicate import consolidation strategy.\n- `importAuthority.sorting.groupImports` (`false`): add blank lines between builtin/external/aliased/relative/type groups.\n- `importAuthority.sorting.sideEffectPlacement` (`top` | `bottom`): side-effect import placement.\n- `importAuthority.sorting.moduleSpecifierOrder` (`none` | `length` | `alpha`): optional secondary module-path ordering.\n- `importAuthority.sorting.detectPathAliases` (`true`): detect aliases from nearest tsconfig/jsconfig `compilerOptions.paths`.\n- `importAuthority.sorting.aliasPrefixes` (`[]`): extra alias prefixes for aliased-group classification.\n- `importAuthority.style.semicolonPolicy` (`always` | `never` | `preserve`): add semicolons, remove semicolons, or keep existing semicolon state.\n- `importAuthority.style.quoteStyle` (`single` | `double` | `preserve`): enforce quote style or keep the original quote style.\n- `importAuthority.style.typeImportStyle` (`declaration` | `inline`): type-only import declaration style.\n- `importAuthority.style.namedImportsWrapThreshold` (`0`): wrap named imports to multiple lines when the unbroken line would exceed this length (`0` disables wrapping).\n- `importAuthority.style.alignFromKeyword` (`false`): add spacing so `from` aligns across single-line imports.\n- `importAuthority.style.normalizeRelativePaths` (`false`): normalize relative module paths and collapse trailing `/index`.\n- `importAuthority.unusedImports.useBuiltInRemoval` (`false`): remove unused imports first using the language service, then apply organizer ordering.\n- `importAuthority.unusedImports.useFallbackRemoval` (`false`): if provider-based unused-import removal fails or has no effect, run a heuristic scan fallback.\n- `importAuthority.features.enableFormattingProvider` (`false`): enable document/range formatting support.\n\n## Source Organize Imports Integration\n\nThe extension registers a `source.organizeImports` code action so it appears in VS Code organize-import flows.\n\n## Supported files\n\n- `.ts`, `.tsx`, `.mts`, `.cts`\n- `.js`, `.jsx`, `.mjs`, `.cjs`\n\n## Development\n\n```sh\nyarn install\nyarn test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdepthbomb%2Fimport-authority","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdepthbomb%2Fimport-authority","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdepthbomb%2Fimport-authority/lists"}