Skip to content

Commit 77c3684

Browse files
authored
Merge pull request #82 from dolittle/fixups
Some more fixes
2 parents 685d2da + dd6a403 commit 77c3684

169 files changed

Lines changed: 113 additions & 296 deletions

File tree

Some content is hidden

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

.eslintignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ out
55
Distribution
66
wallaby.conf.js
77
coverage
8-
.eslintrc.js
8+
.eslintrc.js

.eslintrc.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,19 @@ module.exports = {
1010
tsconfigRootDir: __dirname,
1111
},
1212
rules: {
13-
"@typescript-eslint/unified-signatures": 'off',
14-
"import/no-extraneous-dependencies": 'off'
13+
'@typescript-eslint/unified-signatures': 'off',
14+
'import/no-extraneous-dependencies': 'off',
15+
'eol-last': 'error',
16+
'no-multiple-empty-lines': ['error', { 'max': 1, 'maxEOF': 0 }],
17+
'header/header': [
18+
2,
19+
'line',
20+
[
21+
' Copyright (c) Dolittle. All rights reserved.',
22+
' Licensed under the MIT license. See LICENSE file in the project root for full license information.',
23+
],
24+
2
25+
],
1526
},
1627
overrides: [
1728
{

Samples/Advanced/MyEvent.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) Dolittle. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3+
34
import { eventType } from '@dolittle/sdk.events';
45

56
@eventType('c7b37f26-ffe4-4ffc-9a53-8d67acbecd4d')

Samples/Advanced/MyEventHandler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) Dolittle. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3+
34
import { EventContext } from '@dolittle/sdk.events';
45
import { eventHandler, handles } from '@dolittle/sdk.events.handling';
56
import { MyEvent } from './MyEvent';

Samples/Advanced/for_Dummy/when_nothing.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

Samples/Advanced/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ const client = DolittleClient
3636
)
3737
.build();
3838

39-
4039
const event = new MyEvent();
4140
event.anInteger = 42;
4241
event.aString = 'Forty two';

Samples/Container/MyEvent.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Copyright (c) Dolittle. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
3+
34
import { eventType } from '@dolittle/sdk.events';
45

56
@eventType('c7b37f26-ffe4-4ffc-9a53-8d67acbecd4d')

Samples/Container/MyService.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Dolittle. All rights reserved.
22
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33

4-
54
export class MyService {
65
constructor() {
76
console.log('MyService');

Samples/Container/for_Dummy/when_nothing.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

Samples/Container/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { Container } from 'typedi';
88
import { MyEvent } from './MyEvent';
99
import { MyEventHandler } from './MyEventHandler';
1010

11-
1211
const client = DolittleClient
1312
.forMicroservice('7a6155dd-9109-4488-8f6f-c57fe4b65bfb')
1413
.withContainer(Container)

0 commit comments

Comments
 (0)