UNPKG

prettier-plugin-imports

Version:

A prettier plugins to sort imports in provided RegEx order

29 lines (25 loc) 921 B
import z from 'z'; import { isEmpty } from "lodash-es"; import threeLevelRelativePath from "../../../threeLevelRelativePath"; import sameLevelRelativePath from "./sameLevelRelativePath"; import thirdParty from "third-party"; import oneLevelRelativePath from "../oneLevelRelativePath"; import otherthing from "@core/otherthing"; import abc from "@core/abc"; import twoLevelRelativePath from "../../twoLevelRelativePath"; import component from "@ui/hello"; import fourLevelRelativePath from "../../../../fourLevelRelativePath"; import something from "@server/something"; import xyz from "@ui/xyz"; import { Component } from "@angular/core"; @Component({ selector: "app-root", templateUrl: "./app.component.html", styleUrls: ["./app.component.css"] }) export class AppComponent extends BaseComponent { title = "ng-prettier"; override get text(): string { return isEmpty(this.title) ? "" : this.title; } }