Create prettier imports by defining the paths and baseUrl properties in the compilerOptions section in the tsconfig.json
This will avoid long relative paths when doing imports.
Bad:
import { UserService } from '../../../services/UserService';
Good:
import { UserService } from '@services/UserService';
// tsconfig.json
...
"compilerOptions": {
...
"baseUrl": "src",
"paths": {
"@services": ["services/*"]
}
...
}
...