Skip to content

Commit 7be1181

Browse files
committed
wip: cleanup
1 parent 7964d2c commit 7be1181

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

meteor/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const tmpRules = {
2020
}
2121

2222
const tsBase = {
23-
extends: [...tsExtends, 'plugin:custom-rules/all'],
23+
extends: [...tsExtends],
2424
plugins: tsPlugins,
2525
...tsParser,
2626
settings: {

meteor/server/api/rest/koa.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,12 @@ Meteor.startup(() => {
6262
route = route.slice(0, -1)
6363
}
6464

65-
if (route && transaction) {
65+
if (route) {
6666
transaction.name = `${req.method}:${route}`
6767
transaction.setLabel('route', `${route}`)
6868
}
6969

70-
if (transaction) {
71-
transaction.end()
72-
}
70+
transaction.end()
7371
})
7472
}
7573

packages/blueprints-integration/src/migrations.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ export interface MigrationStepInputFilteredResult {
2424
}
2525

2626
export type ValidateFunctionCore = (afterMigration: boolean) => Promise<boolean | string>
27-
export type ValidateFunctionSystem = (context: MigrationContextSystem, afterMigration: boolean) => Promise<boolean | string>
27+
export type ValidateFunctionSystem = (
28+
context: MigrationContextSystem,
29+
afterMigration: boolean
30+
) => Promise<boolean | string>
2831
export type ValidateFunctionStudio = (context: MigrationContextStudio, afterMigration: boolean) => boolean | string
2932
export type ValidateFunctionShowStyle = (
3033
context: MigrationContextShowStyle,
@@ -37,7 +40,10 @@ export type ValidateFunction =
3740
| ValidateFunctionCore
3841

3942
export type MigrateFunctionCore = (input: MigrationStepInputFilteredResult) => Promise<void>
40-
export type MigrateFunctionSystem = (context: MigrationContextSystem, input: MigrationStepInputFilteredResult) => Promise<void>
43+
export type MigrateFunctionSystem = (
44+
context: MigrationContextSystem,
45+
input: MigrationStepInputFilteredResult
46+
) => Promise<void>
4147
export type MigrateFunctionStudio = (context: MigrationContextStudio, input: MigrationStepInputFilteredResult) => void
4248
export type MigrateFunctionShowStyle = (
4349
context: MigrationContextShowStyle,

packages/webui/src/client/lib/data/mos/__tests__/plugin-support.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,15 @@ describe('createMosAppInfoXmlString', () => {
4242
let ncsAppInfo: any
4343
beforeAll(async () => {
4444
ncsAppInfo = mos.ncsAppInfo
45+
// eslint-disable-next-line jest/no-standalone-expect
4546
expect(ncsAppInfo).toHaveLength(1)
4647
ncsAppInfo = ncsAppInfo[0]
4748
})
4849
describe('node ncsInformation', () => {
4950
let ncsInformation: any
5051
beforeAll(async () => {
5152
ncsInformation = ncsAppInfo.ncsInformation
53+
// eslint-disable-next-line jest/no-standalone-expect
5254
expect(ncsInformation).toHaveLength(1)
5355
ncsInformation = ncsInformation[0]
5456
})

0 commit comments

Comments
 (0)