Skip to content

Commit 7bc799b

Browse files
authored
Upgrade eslint and tselint (#2278)
1 parent 3a79d84 commit 7bc799b

File tree

5 files changed

+107
-94
lines changed

5 files changed

+107
-94
lines changed

eslint.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ module.exports = tseslint.config(
2222
},
2323
rules: {
2424
'@typescript-eslint/no-var-requires': 'off', // tseslint does not autodetect commonjs context
25+
'@typescript-eslint/no-require-imports': 'off', // tseslint does not autodetect commonjs context
2526
},
2627
},
2728
{

lib/command.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
11341134
let resolvedScriptPath; // resolve possible symlink for installed npm binary
11351135
try {
11361136
resolvedScriptPath = fs.realpathSync(this._scriptPath);
1137-
} catch (err) {
1137+
} catch {
11381138
resolvedScriptPath = this._scriptPath;
11391139
}
11401140
executableDir = path.resolve(

0 commit comments

Comments
 (0)