Skip to content

Commit 6fd14bc

Browse files
committedJul 31, 2024·
minor: use new eslint configuration file format
1 parent ce31556 commit 6fd14bc

File tree

5 files changed

+4
-11
lines changed

5 files changed

+4
-11
lines changed
 

‎src/Command/Command.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ export default class Command extends implementationOf(CommandInterface) {
294294
try {
295295
this._application = application;
296296
this._fullDefinition = null;
297-
} catch (e) {
297+
} catch {
298298
// Do nothing...
299299
}
300300
}

‎src/Command/DumpCompletionCommand.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class DumpCompletionCommand extends Command {
4040
fullCommand = (() => {
4141
try {
4242
return realpathSync(fullCommand);
43-
} catch (_) {
43+
} catch {
4444
return null;
4545
}
4646
})() || fullCommand;

‎src/Completion/CompletionInput.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ export default class CompletionInput extends ArgvInput {
223223
_parseToken(token, parseOptions) {
224224
try {
225225
return super._parseToken(token, parseOptions);
226-
} catch (e) {
226+
} catch {
227227
// Suppress errors, completed input is almost never valid
228228
}
229229

‎src/Formatter/OutputFormatter.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ export default class OutputFormatter extends implementationOf(OutputFormatterInt
245245
} else {
246246
try {
247247
style.setOption(match[2]);
248-
} catch (e) {
248+
} catch {
249249
return false;
250250
}
251251
}

‎test/.eslintrc.json

-7
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.