Skip to content

Commit 2f7210d

Browse files
committed
fix: enable no-floating-promises lint rule and fix issue found
1 parent 50b55cb commit 2f7210d

File tree

7 files changed

+929
-1253
lines changed

7 files changed

+929
-1253
lines changed

.eslintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ module.exports = {
2424
},
2525
parserOptions: {
2626
ecmaVersion: 2018,
27+
tsconfigRootDir: __dirname,
28+
project: ['./tsconfig.json', './tsconfig-test.json']
2729
},
2830
rules: {
2931
indent: 'off',
@@ -79,6 +81,7 @@ module.exports = {
7981
{ functions: false, classes: false, enums: false, variables: true },
8082
],
8183
'@typescript-eslint/no-var-requires': 'error',
84+
'@typescript-eslint/no-floating-promises': 'error',
8285

8386
// disallow non-import statements appearing before import statements
8487
'import/first': 'error',

global.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare module 'http-signature'

0 commit comments

Comments
 (0)