Skip to content

Commit 023516d

Browse files
committed
refactor(): reformat project to LF endings
1 parent 263b2ec commit 023516d

File tree

4 files changed

+17
-25
lines changed

4 files changed

+17
-25
lines changed

cloudbuild.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
steps:
2-
- id: build
3-
name: gcr.io/flowcloud-153422/npm-chrome:current
4-
entrypoint: '/bin/bash'
5-
args:
6-
- '-c'
7-
- 'npm run dev:install && npm run lint && npm run tests && npm run build'
8-
waitFor: ['-']
2+
- id: build
3+
name: gcr.io/flowcloud-153422/npm-chrome:current
4+
entrypoint: '/bin/bash'
5+
args:
6+
- '-c'
7+
- 'npm run dev:install && npm run lint && npm run tests && npm run build'
8+
waitFor: ['-']

src/diff-tests.tests.ts

+2-13
Original file line numberDiff line numberDiff line change
@@ -47,19 +47,8 @@ async function compareWithReference(
4747
),
4848
);
4949

50-
const {
51-
same,
52-
equal,
53-
distinct,
54-
differences,
55-
left,
56-
right,
57-
diffSet,
58-
} = await compare(
59-
`${reference.refDir}/api`,
60-
reference.genDir,
61-
COMPARE_OPTIONS,
62-
);
50+
const { same, equal, distinct, differences, left, right, diffSet } =
51+
await compare(`${reference.refDir}/api`, reference.genDir, COMPARE_OPTIONS);
6352

6453
if (!same) {
6554
let result = ' Output should be the same, but there are differences.\n\n';

src/helper.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { FileInfix } from './types';
22

3-
const BUILD_IN_TS_TYPE_REGEX = /^(?:string|number|integer|bigint|boolean|null|undefined|any|void|object|Object|File)\b/; // integer is mapped to number in later step of `typeName` conversion
3+
const BUILD_IN_TS_TYPE_REGEX =
4+
/^(?:string|number|integer|bigint|boolean|null|undefined|any|void|object|Object|File)\b/; // integer is mapped to number in later step of `typeName` conversion
45

56
export const ADDITIONAL_PROPERTIES_KEY = '[key: string]';
67

src/parser.ts

+6-4
Original file line numberDiff line numberDiff line change
@@ -582,10 +582,12 @@ function defineInterface(
582582
const extendInterface: string | undefined = schema.allOf
583583
? toCamelCase(
584584
dereferenceType(
585-
((schema.allOf.find(allOfSchema => '$ref' in allOfSchema) || {
586-
$ref: '',
587-
// tslint:disable-next-line:no-any
588-
}) as any)['$ref'],
585+
(
586+
(schema.allOf.find(allOfSchema => '$ref' in allOfSchema) || {
587+
$ref: '',
588+
// tslint:disable-next-line:no-any
589+
}) as any
590+
)['$ref'],
589591
),
590592
false,
591593
)

0 commit comments

Comments
 (0)