Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

import-sort-style-studytube

yuriykuzin401ISC1.0.4TypeScript support: included

Studytube's import-sort style (Angular, Typescript)

readme

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

  1. npm i import-sort-style-studytube -D

  2. Add .importsortrc file to the project:

{
  ".ts, .tsx": {
    "parser": "typescript",
    "style": "studytube"
  }
}