Skip to content

Commit

Permalink
fix: recognize protected flag prop
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc committed Feb 23, 2023
1 parent 2557351 commit a8bf8ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const isFlagsStaticProperty = (node: TSESTree.Node): node is TSESTree.Pro
node.value?.type === AST_NODE_TYPES.ObjectExpression &&
node.key.type === AST_NODE_TYPES.Identifier &&
node.key.name === 'flags' &&
node.accessibility === 'public';
['public', 'protected'].includes(node.accessibility);

export const flagPropertyIsNamed = (node: TSESTree.Property, name: string): node is TSESTree.Property =>
resolveFlagName(node) === name;
Expand Down

0 comments on commit a8bf8ba

Please sign in to comment.