Skip to content

Commit

Permalink
enable unicorn/no-useless-switch-case rule (#3049)
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Feb 25, 2023
1 parent 9b8d603 commit 579ab7f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ module.exports = {

'no-use-before-define': 0,

'unicorn/no-useless-switch-case': 'error',
// Node.js and CommonJS (http://eslint.org/docs/rules/#nodejs-and-commonjs)
'callback-return': 0,
'global-require': 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ export default async function startServer(
reader = new StreamMessageReader(process.stdin);
writer = new StreamMessageWriter(process.stdout);
break;
case 'node':
default:
reader = new IPCMessageReader(process);
writer = new IPCMessageWriter(process);
Expand Down

0 comments on commit 579ab7f

Please sign in to comment.