Skip to content

Commit

Permalink
Update Eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Dec 18, 2023
1 parent be46159 commit 41e74eb
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,12 @@ const eslintConfig =
'curly' : [ 2, 'all' ],
// Unfortunatelly `curly` does not apply to blocks in `switch` cases so
// this is needed.
// NOTE: We disable this rule since it's producing false positives:
// https://github.com/versatica/mediasoup/pull/1268
// 'no-restricted-syntax' : [ 2,
// {
// 'selector' : 'SwitchCase:has(*.consequent[type!="BlockStatement"])',
// 'message' : 'Switch cases without blocks are disallowed'
// }
// ],
'no-restricted-syntax' : [ 2,
{
'selector' : 'SwitchCase > *.consequent[type!="BlockStatement"]',
'message' : 'Switch cases without blocks are disallowed'
}
],
'func-call-spacing' : 2,
'generator-star-spacing' : 2,
'guard-for-in' : 2,
Expand Down

0 comments on commit 41e74eb

Please sign in to comment.