mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-31 09:37:15 +01:00
Added Prettier and Husky
This commit is contained in:
10
.prettierignore
Normal file
10
.prettierignore
Normal file
@@ -0,0 +1,10 @@
|
||||
# Add files here to ignore them from prettier formatting
|
||||
|
||||
/dist
|
||||
/coverage
|
||||
/helmvalues
|
||||
/apps/swagger
|
||||
/ng-swagger-gen
|
||||
|
||||
*.json
|
||||
*.yml
|
||||
5
.prettierrc.json
Normal file
5
.prettierrc.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"singleQuote": true,
|
||||
"printWidth": 140
|
||||
}
|
||||
|
||||
17
display-addressee-dto.d.ts
vendored
17
display-addressee-dto.d.ts
vendored
@@ -1,17 +0,0 @@
|
||||
import { Gender } from './dist/swagger/oms/lib/models/gender';
|
||||
import { OrganisationDTO } from './dist/swagger/oms/lib/models/organisation-dto';
|
||||
import { AddressDTO } from './dist/swagger/oms/lib/models/address-dto';
|
||||
import { CommunicationDetailsDTO } from './dist/swagger/oms/lib/models/communication-details-dto';
|
||||
import { ExternalReferenceDTO } from './dist/swagger/oms/lib/models/external-reference-dto';
|
||||
export interface DisplayAddresseeDTO {
|
||||
number?: string;
|
||||
locale?: string;
|
||||
gender: Gender;
|
||||
title?: string;
|
||||
firstName?: string;
|
||||
lastName?: string;
|
||||
organisation?: OrganisationDTO;
|
||||
address?: AddressDTO;
|
||||
communicationDetails?: CommunicationDetailsDTO;
|
||||
externalReference?: ExternalReferenceDTO;
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
/* tslint:disable */
|
||||
import { EntityDTOOfDisplayOrderDTOAndIOrder } from './entity-dtoof-display-order-dtoand-iorder';
|
||||
import { DisplayAddresseeDTO } from './display-addressee-dto';
|
||||
import { OrderType } from './order-type';
|
||||
import { DisplayBranchDTO } from './display-branch-dto';
|
||||
import { DisplayOrderItemDTO } from './display-order-item-dto';
|
||||
import { EnvironmentChannel } from './environment-channel';
|
||||
import { DisplayOrderPaymentDTO } from './display-order-payment-dto';
|
||||
import { TermsOfDeliveryDTO } from './terms-of-delivery-dto';
|
||||
import { NotificationChannel } from './notification-channel';
|
||||
export interface DisplayOrderDTO extends EntityDTOOfDisplayOrderDTOAndIOrder {
|
||||
shippingAddress?: DisplayAddresseeDTO;
|
||||
orderType: OrderType;
|
||||
orderNumber?: string;
|
||||
orderDate?: string;
|
||||
orderBranch?: DisplayBranchDTO;
|
||||
completedDate?: string;
|
||||
items?: Array<DisplayOrderItemDTO>;
|
||||
buyerNumber?: string;
|
||||
buyer?: DisplayAddresseeDTO;
|
||||
buyerComment?: string;
|
||||
clientChannel?: EnvironmentChannel;
|
||||
targetBranch?: DisplayBranchDTO;
|
||||
payerNumber?: string;
|
||||
payer?: DisplayAddresseeDTO;
|
||||
payment?: DisplayOrderPaymentDTO;
|
||||
termsOfDelivery?: TermsOfDeliveryDTO;
|
||||
notificationChannels?: NotificationChannel;
|
||||
orderValue?: number;
|
||||
orderValueCurrency?: string;
|
||||
itemsCount?: number;
|
||||
}
|
||||
10
package.json
10
package.json
@@ -34,9 +34,10 @@
|
||||
"gen:swagger:print": "ng-swagger-gen --config ng-swagger-gen/print.json",
|
||||
"gen:swagger:eis": "ng-swagger-gen --config ng-swagger-gen/eis.json"
|
||||
},
|
||||
"prettier": {
|
||||
"singleQuote": true,
|
||||
"printWidth": 140
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "pretty-quick --staged"
|
||||
}
|
||||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
@@ -103,6 +104,7 @@
|
||||
"@types/jasminewd2": "~2.0.3",
|
||||
"@types/node": "~8.9.4",
|
||||
"codelyzer": "~4.5.0",
|
||||
"husky": "^4.2.3",
|
||||
"jasmine-core": "~2.99.1",
|
||||
"jasmine-marbles": "^0.6.0",
|
||||
"jasmine-spec-reporter": "~4.2.1",
|
||||
@@ -115,6 +117,8 @@
|
||||
"ng-swagger-gen": "^1.5.0",
|
||||
"ngrx-store-freeze": "^0.2.4",
|
||||
"npm-run-all": "^4.1.5",
|
||||
"prettier": "2.0.1",
|
||||
"pretty-quick": "^2.0.1",
|
||||
"protractor": "~5.4.0",
|
||||
"ts-node": "~7.0.0",
|
||||
"tsickle": "^0.34.3",
|
||||
|
||||
Reference in New Issue
Block a user