import-sort-style-eslint-typescript-hero

1.1.0 • Public • Published

import-sort-style-eslint-typescript-hero

A style for import-sort that mimics import-sort and typescript-hero sorting applied one after another with default settings.

import 'a';
import 'b';
import 'c';
 
import { ArgumentsHost } from '@nestjs/common';
import { GqlArgumentsHost } from '@nestjs/graphql';
 
import * as aa from 'aa';
import aaa, { bbb } from 'aaa';
import aaaa from 'aaaa';
import * as bb from 'bb';
import { bbbb } from 'bbbb';
import { ccc, ddd } from 'ccc';
import * as fff from 'eee';
 
import * as dd from '../dd';
import * as ff from '../ff';
import * as cc from './cc';
import * as ee from './ee';

Installation

  • Run npm install -g import-sort-style-eslint-typescript-hero
  • Create a .importsortrc file
    {
      ".ts": {
        "style": "/{global_node_modules_path}/import-sort-style-eslint-typescript-hero",
        "options": {
          "tsHeroGroupsConfig": [
            "/request-context/",
            "Plains",
            "/@nestjs/",
            "Modules",
            "Workspace"
          ]
        }
      }
    }

Readme

Keywords

none

Package Sidebar

Install

npm i import-sort-style-eslint-typescript-hero

Weekly Downloads

338

Version

1.1.0

License

MIT

Unpacked Size

14.4 kB

Total Files

12

Last publish

Collaborators

  • kgoryunov