Skip to content

Commit

Permalink
fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Omri Luzon committed Dec 22, 2022
1 parent eb761c7 commit ab3911e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/eslint-plugin/src/rules/block-spacing.ts
Expand Up @@ -152,9 +152,9 @@ export default util.createRule<Options, MessageIds>({
...baseRules,

// This code worked "out of the box" for interface and type literal
// Enums were very close to match as well, the only reason they it not is that was that enums don't have a body node in the parser
// So the opening brace punctuator starts in the middle of the node
// `getFirstToken` in the base rule did not filter for the first opening brace punctuator
// Enums were very close to match as well, the only reason they are not is that was that enums don't have a body node in the parser
// So the opening brace punctuator starts in the middle of the node - `getFirstToken` in
// the base rule did not filter for the first opening brace punctuator
TSInterfaceBody: baseRules.BlockStatement as never,
TSTypeLiteral: baseRules.BlockStatement as never,
TSEnumDeclaration: checkSpacingInsideBraces,
Expand Down

0 comments on commit ab3911e

Please sign in to comment.