Skip to content

Commit

Permalink
minor: use new eslint configuration file format
Browse files Browse the repository at this point in the history
  • Loading branch information
alekitto committed Jul 31, 2024
1 parent ce31556 commit 6fd14bc
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/Command/Command.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export default class Command extends implementationOf(CommandInterface) {
try {
this._application = application;
this._fullDefinition = null;
} catch (e) {
} catch {
// Do nothing...
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Command/DumpCompletionCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class DumpCompletionCommand extends Command {
fullCommand = (() => {
try {
return realpathSync(fullCommand);
} catch (_) {
} catch {
return null;
}
})() || fullCommand;
Expand Down
2 changes: 1 addition & 1 deletion src/Completion/CompletionInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export default class CompletionInput extends ArgvInput {
_parseToken(token, parseOptions) {
try {
return super._parseToken(token, parseOptions);
} catch (e) {
} catch {
// Suppress errors, completed input is almost never valid
}

Expand Down
2 changes: 1 addition & 1 deletion src/Formatter/OutputFormatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export default class OutputFormatter extends implementationOf(OutputFormatterInt
} else {
try {
style.setOption(match[2]);
} catch (e) {
} catch {
return false;
}
}
Expand Down
7 changes: 0 additions & 7 deletions test/.eslintrc.json

This file was deleted.

0 comments on commit 6fd14bc

Please sign in to comment.