Chore: Cleaned up imports to use Modules.
Feature: Added an eslint rule to sort component imports
This commit is contained in:
@ -1,16 +1,10 @@
|
||||
import { CdkScrollable } from '@angular/cdk/scrolling';
|
||||
import { CdkScrollableModule } from '@angular/cdk/scrolling';
|
||||
import { Component, Inject, OnInit } from '@angular/core';
|
||||
import { FormControl, FormGroup, ReactiveFormsModule } from '@angular/forms';
|
||||
import { MatButton } from '@angular/material/button';
|
||||
import {
|
||||
MAT_DIALOG_DATA,
|
||||
MatDialogRef,
|
||||
MatDialogContent,
|
||||
MatDialogActions,
|
||||
MatDialogClose,
|
||||
} from '@angular/material/dialog';
|
||||
import { MatFormField, MatLabel } from '@angular/material/form-field';
|
||||
import { MatInput } from '@angular/material/input';
|
||||
import { MatButtonModule } from '@angular/material/button';
|
||||
import { MAT_DIALOG_DATA, MatDialogRef, MatDialogModule } from '@angular/material/dialog';
|
||||
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||
import { MatInputModule } from '@angular/material/input';
|
||||
|
||||
import { MathService } from '../../shared/math.service';
|
||||
|
||||
@ -19,15 +13,12 @@ import { MathService } from '../../shared/math.service';
|
||||
templateUrl: './quantity.component.html',
|
||||
styleUrls: ['./quantity.component.css'],
|
||||
imports: [
|
||||
CdkScrollable,
|
||||
MatDialogContent,
|
||||
CdkScrollableModule,
|
||||
MatButtonModule,
|
||||
MatDialogModule,
|
||||
MatFormFieldModule,
|
||||
MatInputModule,
|
||||
ReactiveFormsModule,
|
||||
MatFormField,
|
||||
MatLabel,
|
||||
MatInput,
|
||||
MatDialogActions,
|
||||
MatButton,
|
||||
MatDialogClose,
|
||||
],
|
||||
})
|
||||
export class QuantityComponent implements OnInit {
|
||||
|
||||
Reference in New Issue
Block a user