Skip to content

Commit 9557a60

Browse files
committed
Allow ! operator
1 parent c9d6817 commit 9557a60

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ const config = {
7373
'@typescript-eslint/no-shadow': 'error',
7474

7575
'@typescript-eslint/explicit-function-return-type': 'off',
76+
'@typescript-eslint/no-non-null-assertion': 'off',
7677
'@typescript-eslint/camelcase': 'off',
7778
'@typescript-eslint/class-name-casing': 'off',
7879
'@typescript-eslint/no-unused-vars': 'off',

src/Http.test.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ test('defaults.init', async () => {
2121
headers: expect.any(Headers),
2222
method: 'GET'
2323
});
24-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
2524
let headers = entriesToObject(spy.mock.calls[0][1]!.headers as Headers);
2625
expect(headers).toEqual({ accept: 'text/*' });
2726

@@ -42,7 +41,6 @@ test('defaults.init', async () => {
4241
headers: expect.any(Headers),
4342
method: 'GET'
4443
});
45-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
4644
headers = entriesToObject(spy.mock.calls[0][1]!.headers as Headers);
4745
expect(headers).toEqual({ accept: 'text/*', test1: 'true' });
4846

@@ -56,7 +54,6 @@ test('defaults.init', async () => {
5654
headers: expect.any(Headers),
5755
method: 'GET'
5856
});
59-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
6057
headers = entriesToObject(spy.mock.calls[0][1]!.headers as Headers);
6158
expect(headers).toEqual({ accept: 'text/*', test1: 'true', test2: 'true' });
6259

src/createTestServer/createTestServer.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ export function createTestServer(options?: Options) {
9494
// https://github.com/fastify/fastify/blob/v4.10.2/lib/error-handler.js#L74
9595
// FYI Express needs the same hack: http://expressjs.com/en/guide/error-handling.html#the-default-error-handler
9696
// FYI http.createServer() doesn't need it
97-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
9897
process.stderr.write(error.stack!);
9998
defaultErrorHandler(error, request as any, reply as any); // FIXME as any because the types look wrong
10099
}

0 commit comments

Comments
 (0)