Skip to content

Commit 0621996

Browse files
authored
chore: sort imports with prettier plugin (#114)
1 parent 5ce22b3 commit 0621996

26 files changed

+84
-55
lines changed

.prettierrc.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
plugins:
2+
- "@ianvs/prettier-plugin-sort-imports"
3+
importOrderParserPlugins:
4+
- typescript
5+
- decorators-legacy
6+
importOrderTypeScriptVersion: 5.1.0

package-lock.json

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"@angular-eslint/template-parser": "^16.0.1",
4242
"@angular/cli": "~16.1.0",
4343
"@angular/compiler-cli": "~16.1.0",
44+
"@ianvs/prettier-plugin-sort-imports": "^4.1.0",
4445
"@types/jasmine": "~4.3.0",
4546
"@types/marked": "^4.0.8",
4647
"@typescript-eslint/eslint-plugin": "^6.0.0",

projects/angular-ecmascript-intl/src/lib/country/intl-country.pipe.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { IntlCountryPipe } from './intl-country.pipe';
21
import { TestBed } from '@angular/core/testing';
32
import { INTL_LOCALES } from '../locale';
43
import { INTL_COUNTRY_PIPE_DEFAULT_OPTIONS } from './intl-country-pipe-default-options';
4+
import { IntlCountryPipe } from './intl-country.pipe';
55

66
describe('IntlCountryPipe', () => {
77
let testUnit: IntlCountryPipe;

projects/angular-ecmascript-intl/src/lib/country/intl-country.pipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Inject, Optional, Pipe, PipeTransform } from '@angular/core';
2+
import { IntlPipeOptions } from '../intl-pipe-options';
23
import { INTL_LOCALES } from '../locale';
34
import { INTL_COUNTRY_PIPE_DEFAULT_OPTIONS } from './intl-country-pipe-default-options';
4-
import { IntlPipeOptions } from '../intl-pipe-options';
55

66
export type IntlCountryPipeOptions = Omit<
77
Partial<Intl.DisplayNamesOptions>,

projects/angular-ecmascript-intl/src/lib/currency/intl-currency.pipe.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { IntlCurrencyPipe } from './intl-currency.pipe';
21
import { TestBed } from '@angular/core/testing';
32
import { INTL_LOCALES } from '../locale';
43
import { INTL_CURRENCY_PIPE_DEFAULT_OPTIONS } from './intl-currency-pipe-default-options';
4+
import { IntlCurrencyPipe } from './intl-currency.pipe';
55

66
describe('IntlCurrencyPipe', () => {
77
let testUnit: IntlCurrencyPipe;

projects/angular-ecmascript-intl/src/lib/currency/intl-currency.pipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { Inject, Optional, Pipe, PipeTransform } from '@angular/core';
22
import { IntlPipeOptions } from '../intl-pipe-options';
33
import { INTL_LOCALES } from '../locale';
4-
import { INTL_CURRENCY_PIPE_DEFAULT_OPTIONS } from './intl-currency-pipe-default-options';
54
import { getNumericValue } from '../utils/number-utils';
5+
import { INTL_CURRENCY_PIPE_DEFAULT_OPTIONS } from './intl-currency-pipe-default-options';
66

77
type OmitOptions = 'unit' | 'unitDisplay' | 'currency';
88
export type IntlCurrencyPipeOptions = Omit<

projects/angular-ecmascript-intl/src/lib/date/intl-date.pipe.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { IntlDatePipe } from './intl-date.pipe';
21
import { TestBed } from '@angular/core/testing';
32
import { INTL_LOCALES } from '../locale';
43
import { INTL_DATE_PIPE_DEFAULT_OPTIONS } from './intl-date-pipe-default-options';
4+
import { IntlDatePipe } from './intl-date.pipe';
55

66
describe('DatePipe', () => {
77
let testUnit: IntlDatePipe;

projects/angular-ecmascript-intl/src/lib/date/intl-date.pipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Inject, Optional, Pipe, PipeTransform } from '@angular/core';
2+
import { IntlPipeOptions } from '../intl-pipe-options';
23
import { INTL_LOCALES } from '../locale';
34
import { INTL_DATE_PIPE_DEFAULT_OPTIONS } from './intl-date-pipe-default-options';
4-
import { IntlPipeOptions } from '../intl-pipe-options';
55

66
export type IntlDatePipeOptions = Partial<Intl.DateTimeFormatOptions> &
77
IntlPipeOptions;

projects/angular-ecmascript-intl/src/lib/decimal/intl-decimal.pipe.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { IntlDecimalPipe } from './intl-decimal.pipe';
21
import { TestBed } from '@angular/core/testing';
32
import { INTL_LOCALES } from '../locale';
43
import { INTL_DECIMAL_PIPE_DEFAULT_OPTIONS } from './intl-decimal-pipe-default-options';
4+
import { IntlDecimalPipe } from './intl-decimal.pipe';
55

66
describe('IntlDecimalPipe', () => {
77
let testUnit: IntlDecimalPipe;

0 commit comments

Comments
 (0)