Skip to content

Commit f8e2cf0

Browse files
committed
format
1 parent 653710f commit f8e2cf0

File tree

3 files changed

+33
-33
lines changed

3 files changed

+33
-33
lines changed

eslint.config.js

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
11
module.exports = [
22
{
33
languageOptions: {
4-
ecmaVersion: "latest",
5-
sourceType: "module",
4+
ecmaVersion: 'latest',
5+
sourceType: 'module',
66
globals: {
7-
window: "readonly",
8-
document: "readonly",
9-
process: "readonly",
10-
require: "readonly",
7+
window: 'readonly',
8+
document: 'readonly',
9+
process: 'readonly',
10+
require: 'readonly',
1111
},
1212
parserOptions: {
13-
project: "tsconfig.json",
13+
project: 'tsconfig.json',
1414
},
1515
},
16-
ignores: ["dist/*", "node_modules/*"],
16+
ignores: ['dist/*', 'node_modules/*'],
1717
plugins: {
18-
"unused-imports": require("eslint-plugin-unused-imports"),
19-
"@typescript-eslint": require("@typescript-eslint/eslint-plugin"),
20-
"eslint-plugin-tsdoc": require("eslint-plugin-tsdoc"),
18+
'unused-imports': require('eslint-plugin-unused-imports'),
19+
'@typescript-eslint': require('@typescript-eslint/eslint-plugin'),
20+
'eslint-plugin-tsdoc': require('eslint-plugin-tsdoc'),
2121
},
2222
rules: {
23-
curly: "warn",
24-
"prefer-const": "warn",
25-
"no-else-return": "warn",
26-
complexity: ["warn", 1000],
27-
"no-unneeded-ternary": "warn",
28-
"no-alert": "warn",
29-
"no-empty": "warn",
30-
"no-useless-catch": "error",
31-
"require-await": "warn",
32-
"no-continue": "warn",
33-
"no-console": "warn",
34-
"unused-imports/no-unused-imports": "warn",
35-
"no-magic-numbers": "off",
23+
curly: 'warn',
24+
'prefer-const': 'warn',
25+
'no-else-return': 'warn',
26+
complexity: ['warn', 1000],
27+
'no-unneeded-ternary': 'warn',
28+
'no-alert': 'warn',
29+
'no-empty': 'warn',
30+
'no-useless-catch': 'error',
31+
'require-await': 'warn',
32+
'no-continue': 'warn',
33+
'no-console': 'warn',
34+
'unused-imports/no-unused-imports': 'warn',
35+
'no-magic-numbers': 'off',
3636
},
3737
},
3838
{
39-
files: ["try.mjs"],
39+
files: ['try.mjs'],
4040
rules: {
41-
"no-console": "off",
41+
'no-console': 'off',
4242
},
4343
},
44-
];
44+
]

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@
3434
"test": "yarn build && jest",
3535
"upgrade": "bunx npm-check-updates -i"
3636
},
37+
"resolutions": {
38+
"glob": "^11.0.0"
39+
},
3740
"dependencies": {
3841
"@ledgerhq/hw-transport": "6.31.9"
3942
},
@@ -69,8 +72,5 @@
6972
"moduleDirectories": [
7073
"node_modules",
7174
"dist"
72-
],
73-
"resolutions": {
74-
"glob": "^11.0.0"
75-
}
75+
]
7676
}

src/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export default class BaseApp {
133133
// Extract status code from error
134134
const statusCode: number = (e as any).statusCode || (e as any).returnCode || 0
135135
const message = (e as any).message
136-
136+
137137
// Create buffer based on whether error has a message
138138
let buffer: Buffer
139139
if (message?.length > 0) {
@@ -144,7 +144,7 @@ export default class BaseApp {
144144
buffer = Buffer.allocUnsafe(2)
145145
buffer.writeUInt16BE(statusCode, 0)
146146
}
147-
147+
148148
return processResponse(buffer, this.CUSTOM_APP_ERROR_DESCRIPTION)
149149
}
150150
}

0 commit comments

Comments
 (0)