Import Order Principles
Order imports from the platform level toward the most concrete application level. Place external modules before platform-owned modules, less UI-specific modules before more UI-specific modules, larger-scope modules before smaller-scope modules, and peer modules alphabetically.
Correct
import fs from 'fs'
import express from 'express'
import { getApp } from 'core'
import parse from './parse.js'
Incorrect
import parse from './parse.js'
import { getApp } from 'core'
import express from 'express'
import fs from 'fs'
Fix
Reorder imports by layer from the platform toward the local feature, then alphabetize imports that belong to the same layer.