1.0.4 • Published 5 years ago
import-sort-style-studytube v1.0.4
import-sort-style-studytube
Studytube's import-sort style (Angular, Typescript)
for import-sort
// angular imports:
import {...} "@angular/...";
// third party modules:
import { NgxPageScrollModule } from 'ngx-page-scroll';
import { TranslateModule } from '@ngx-translate/core';
import 'moment/locale/en.js';
// env, config, routes:
import { APP_TOKEN } from './config';
import { appRoutes } from './routes';
import { environment } from '@env';
// local imports:
import { AnotherComponent } from '../another/another.component';
import { SomePipe } from '@app/shared/pipes/some.pipe';
import { SomeComponent } from './components/some/some.component';
import './my-lib.js';
install from npm
npm i import-sort-style-studytube -D
Add
.importsortrc
file to the project:
{
".ts, .tsx": {
"parser": "typescript",
"style": "studytube"
}
}