Skip to content

Commit

Permalink
empty-brace-spaces: Test static block with default parser (#1595)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Nov 10, 2021
1 parent a8d52e4 commit 4cbcabe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions rules/empty-brace-spaces.js
Expand Up @@ -11,10 +11,9 @@ const selector = matches([
'BlockStatement[body.length=0]',
'ClassBody[body.length=0]',
'ObjectExpression[properties.length=0]',
'StaticBlock[body.length=0]',
// Experimental https://github.com/tc39/proposal-record-tuple
'RecordExpression[properties.length=0]',
// Experimental https://github.com/tc39/proposal-class-static-block
'StaticBlock[body.length=0]',
]);

/** @param {import('eslint').Rule.RuleContext} context */
Expand Down
1 change: 1 addition & 0 deletions test/empty-brace-spaces.mjs
Expand Up @@ -26,6 +26,7 @@ const cases = [
'foo = {/* */}',
'class Foo {bar() {/* */}}',
'foo = class {bar() {/* */}}',
'class Foo {static {/* */}}',
];
const classBodyCases = [
'class Foo {/* */}',
Expand Down

0 comments on commit 4cbcabe

Please sign in to comment.