Skip to content

Commit 4e9ab82

Browse files
committed
style: apply ESLint auto-fixes for consistent code formatting
1 parent 6cdf908 commit 4e9ab82

File tree

485 files changed

+4456
-710
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

485 files changed

+4456
-710
lines changed

__fixtures__/kitchen-sink/typescript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
22
import { skitch } from './src/cli';
3-
var argv = require('minimist')(process.argv.slice(2));
3+
const argv = require('minimist')(process.argv.slice(2));
44

55
// skitch upgrade
66
(async () => {

__fixtures__/kitchen-sink/typescript.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env node
22
import { skitch } from './src/cli';
3-
var argv = require('minimist')(process.argv.slice(2));
3+
const argv = require('minimist')(process.argv.slice(2));
44

55
// skitch upgrade
66
(async () => {

__fixtures__/output/schemas/actions_public.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { UUID, Timestamp } from "./_common";
1+
import { Timestamp,UUID } from "./_common";
22
export interface ast_actions {
33
id: number;
44
database_id: UUID;

__fixtures__/output/schemas/collections_public.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { UUID, Timestamp } from "./_common";
1+
import { Timestamp,UUID } from "./_common";
22
export interface check_constraint {
33
id: UUID;
44
database_id: UUID;

__fixtures__/output/schemas/db_migrate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { UUID, Timestamp } from "./_common";
1+
import { Timestamp,UUID } from "./_common";
22
export interface migrate_files {
33
id: UUID;
44
database_id: UUID | null;

__fixtures__/output/schemas/objects_private.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { UUID, Timestamp } from "./_common";
1+
import { Timestamp,UUID } from "./_common";
22
export interface object {
33
id: UUID;
44
database_id: UUID;

__fixtures__/output/schemas/txs_public.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { UUID, Timestamp } from "./_common";
1+
import { Timestamp,UUID } from "./_common";
22
export interface commit {
33
id: UUID;
44
message: string | null;

__fixtures__/stage/extensions/@pgpm/achievements/__tests__/achievements.test.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ it('newbie', async () => {
6565
'accept_privacy',
6666
...repeat('complete_action', 3)
6767
];
68+
6869
for (const name of steps) {
6970
await pg.any(
7071
`INSERT INTO status_public.user_steps (user_id, name) VALUES ($1, $2)`,
@@ -76,24 +77,28 @@ it('newbie', async () => {
7677
`SELECT * FROM status_public.steps_required($1, $2)`,
7778
['advanced', user_id]
7879
);
80+
7981
expect(snapshot({ advancedRequirements })).toMatchSnapshot();
8082

8183
const newbieRequirements = await pg.any(
8284
`SELECT * FROM status_public.steps_required($1, $2)`,
8385
['newbie', user_id]
8486
);
87+
8588
expect(snapshot({ newbieRequirements })).toMatchSnapshot();
8689

8790
const [userAchievedNewbie] = await pg.any(
8891
`SELECT * FROM status_public.user_achieved($1, $2)`,
8992
['newbie', user_id]
9093
);
94+
9195
expect(snapshot({ newbie: userAchievedNewbie })).toMatchSnapshot();
9296

9397
const [userAchievedAdvanced] = await pg.any(
9498
`SELECT * FROM status_public.user_achieved($1, $2)`,
9599
['advanced', user_id]
96100
);
101+
97102
expect(snapshot({ advanced: userAchievedAdvanced })).toMatchSnapshot();
98103
});
99104

@@ -106,6 +111,7 @@ it('advanced', async () => {
106111
...repeat('invite_users', 3),
107112
...repeat('complete_action', 21)
108113
];
114+
109115
for (const name of steps) {
110116
await pg.any(
111117
`INSERT INTO status_public.user_steps (user_id, name) VALUES ($1, $2)`,
@@ -117,24 +123,28 @@ it('advanced', async () => {
117123
`SELECT * FROM status_public.steps_required($1, $2)`,
118124
['advanced', user_id]
119125
);
126+
120127
expect(snapshot({ advancedRequirements })).toMatchSnapshot();
121128

122129
const newbieRequirements = await pg.any(
123130
`SELECT * FROM status_public.steps_required($1, $2)`,
124131
['newbie', user_id]
125132
);
133+
126134
expect(snapshot({ newbieRequirements })).toMatchSnapshot();
127135

128136
const [userAchievedNewbie] = await pg.any(
129137
`SELECT * FROM status_public.user_achieved($1, $2)`,
130138
['newbie', user_id]
131139
);
140+
132141
expect(snapshot({ newbie: userAchievedNewbie })).toMatchSnapshot();
133142

134143
const [userAchievedAdvanced] = await pg.any(
135144
`SELECT * FROM status_public.user_achieved($1, $2)`,
136145
['advanced', user_id]
137146
);
147+
138148
expect(snapshot({ advanced: userAchievedAdvanced })).toMatchSnapshot();
139149
});
140150

@@ -157,6 +167,7 @@ it('advanced part II', async () => {
157167
...repeat('invite_users', 3),
158168
...repeat('complete_action', 10)
159169
];
170+
160171
for (const name of steps) {
161172
await pg.any(
162173
`INSERT INTO status_public.user_steps (user_id, name) VALUES ($1, $2)`,
@@ -168,24 +179,28 @@ it('advanced part II', async () => {
168179
`SELECT * FROM status_public.steps_required($1, $2)`,
169180
['advanced', user_id]
170181
);
182+
171183
expect(snapshot({ advancedRequirements })).toMatchSnapshot();
172184

173185
const newbieRequirements = await pg.any(
174186
`SELECT * FROM status_public.steps_required($1, $2)`,
175187
['newbie', user_id]
176188
);
189+
177190
expect(snapshot({ newbieRequirements })).toMatchSnapshot();
178191

179192
const [userAchievedNewbie] = await pg.any(
180193
`SELECT * FROM status_public.user_achieved($1, $2)`,
181194
['newbie', user_id]
182195
);
196+
183197
expect(snapshot({ newbie: userAchievedNewbie })).toMatchSnapshot();
184198

185199
const [userAchievedAdvanced] = await pg.any(
186200
`SELECT * FROM status_public.user_achieved($1, $2)`,
187201
['advanced', user_id]
188202
);
203+
189204
expect(snapshot({ advanced: userAchievedAdvanced })).toMatchSnapshot();
190205
});
191206

@@ -227,23 +242,27 @@ it('advanced part III', async () => {
227242
`SELECT * FROM status_public.steps_required($1, $2)`,
228243
['advanced', user_id]
229244
);
245+
230246
expect(snapshot({ advancedRequirements })).toMatchSnapshot();
231247

232248
const newbieRequirements = await pg.any(
233249
`SELECT * FROM status_public.steps_required($1, $2)`,
234250
['newbie', user_id]
235251
);
252+
236253
expect(snapshot({ newbieRequirements })).toMatchSnapshot();
237254

238255
const [userAchievedNewbie] = await pg.any(
239256
`SELECT * FROM status_public.user_achieved($1, $2)`,
240257
['newbie', user_id]
241258
);
259+
242260
expect(snapshot({ newbie: userAchievedNewbie })).toMatchSnapshot();
243261

244262
const [userAchievedAdvanced] = await pg.any(
245263
`SELECT * FROM status_public.user_achieved($1, $2)`,
246264
['advanced', user_id]
247265
);
266+
248267
expect(snapshot({ advanced: userAchievedAdvanced })).toMatchSnapshot();
249268
});

__fixtures__/stage/extensions/@pgpm/achievements/__tests__/triggers.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ it('newbie', async () => {
117117
const beforeInsert = await pg.any(
118118
`SELECT * FROM status_public.user_achievements ORDER BY name`
119119
);
120+
120121
expect(snapshot({ beforeInsert })).toMatchSnapshot();
121122

122123
await pg.any(
@@ -127,40 +128,46 @@ it('newbie', async () => {
127128
const afterFirstInsert = await pg.any(
128129
`SELECT * FROM status_public.user_achievements ORDER BY name`
129130
);
131+
130132
expect(snapshot({ afterFirstInsert })).toMatchSnapshot();
131133

132134
await pg.any(`UPDATE status_public.mytable SET toggle = 'yo'`);
133135

134136
const afterUpdateToggleToValue = await pg.any(
135137
`SELECT * FROM status_public.user_achievements ORDER BY name`
136138
);
139+
137140
expect(snapshot({ afterUpdateToggleToValue })).toMatchSnapshot();
138141

139142
await pg.any(`UPDATE status_public.mytable SET toggle = NULL`);
140143

141144
const afterUpdateToggleToNull = await pg.any(
142145
`SELECT * FROM status_public.user_achievements ORDER BY name`
143146
);
147+
144148
expect(snapshot({ afterUpdateToggleToNull })).toMatchSnapshot();
145149

146150
await pg.any(`UPDATE status_public.mytable SET is_verified = TRUE`);
147151

148152
const afterIsVerifiedIsTrue = await pg.any(
149153
`SELECT * FROM status_public.user_achievements ORDER BY name`
150154
);
155+
151156
expect(snapshot({ afterIsVerifiedIsTrue })).toMatchSnapshot();
152157

153158
await pg.any(`UPDATE status_public.mytable SET is_verified = FALSE`);
154159

155160
const afterIsVerifiedIsFalse = await pg.any(
156161
`SELECT * FROM status_public.user_achievements ORDER BY name`
157162
);
163+
158164
expect(snapshot({ afterIsVerifiedIsFalse })).toMatchSnapshot();
159165

160166
await pg.any(`UPDATE status_public.mytable SET is_approved = TRUE`);
161167

162168
const afterIsApprovedTrue = await pg.any(
163169
`SELECT * FROM status_public.user_achievements ORDER BY name`
164170
);
171+
165172
expect(snapshot({ afterIsApprovedTrue })).toMatchSnapshot();
166173
});

__fixtures__/stage/extensions/@pgpm/base32/__tests__/base32.decode.test.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { getConnections, PgTestClient } from 'pgsql-test';
21
import cases from 'jest-in-case';
2+
import { getConnections, PgTestClient } from 'pgsql-test';
33

44
let pg: PgTestClient;
55
let teardown: () => Promise<void>;
@@ -18,6 +18,7 @@ it('base32_to_decimal', async () => {
1818
`SELECT base32.base32_to_decimal($1::text) AS base32_to_decimal`,
1919
['INQXI===']
2020
);
21+
2122
expect(base32_to_decimal).toEqual(['8', '13', '16', '23', '8', '=', '=', '=']);
2223
});
2324

@@ -26,6 +27,7 @@ it('decimal_to_chunks', async () => {
2627
`SELECT base32.decimal_to_chunks($1::text[]) AS decimal_to_chunks`,
2728
[['8', '13', '16', '23', '8', '=', '=', '=']]
2829
);
30+
2931
expect(decimal_to_chunks).toEqual([
3032
'01000',
3133
'01101',
@@ -43,6 +45,7 @@ it('decode', async () => {
4345
`SELECT base32.decode($1::text) AS decode`,
4446
['INQXI']
4547
);
48+
4649
expect(decode).toEqual('Cat');
4750
});
4851

@@ -51,6 +54,7 @@ it('zero_fill', async () => {
5154
`SELECT base32.zero_fill($1::int, $2::int) AS zero_fill`,
5255
[300, 2]
5356
);
57+
5458
expect(zero_fill).toBe('75');
5559
});
5660

@@ -59,6 +63,7 @@ it('zero_fill (-)', async () => {
5963
`SELECT base32.zero_fill($1::int, $2::int) AS zero_fill`,
6064
[-300, 2]
6165
);
66+
6267
expect(zero_fill).toBe('1073741749');
6368
});
6469

@@ -67,6 +72,7 @@ it('zero_fill (0)', async () => {
6772
`SELECT base32.zero_fill($1::int, $2::int) AS zero_fill`,
6873
[-300, 0]
6974
);
75+
7076
expect(zero_fill).toBe('4294966996');
7177
});
7278

@@ -77,6 +83,7 @@ cases(
7783
`SELECT base32.decode($1::text) AS decode`,
7884
[opts.name]
7985
);
86+
8087
expect(decode).toEqual(opts.result);
8188
expect(decode).toMatchSnapshot();
8289
},

0 commit comments

Comments
 (0)