Skip to content

Commit

Permalink
Upgrade eslint and tselint (#2278)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn authored Nov 3, 2024
1 parent 3a79d84 commit 7bc799b
Show file tree
Hide file tree
Showing 5 changed files with 107 additions and 94 deletions.
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module.exports = tseslint.config(
},
rules: {
'@typescript-eslint/no-var-requires': 'off', // tseslint does not autodetect commonjs context
'@typescript-eslint/no-require-imports': 'off', // tseslint does not autodetect commonjs context
},
},
{
Expand Down
2 changes: 1 addition & 1 deletion lib/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
let resolvedScriptPath; // resolve possible symlink for installed npm binary
try {
resolvedScriptPath = fs.realpathSync(this._scriptPath);
} catch (err) {
} catch {
resolvedScriptPath = this._scriptPath;
}
executableDir = path.resolve(
Expand Down
Loading

0 comments on commit 7bc799b

Please sign in to comment.