Skip to content

Commit

Permalink
[ts] only properties can be defined as private fields
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhyde committed Sep 14, 2024
1 parent 4f66571 commit b31449d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/configs/axiom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const axiom: Linter.Config[] = [
'no-restricted-syntax': [
'error',
{
selector: ':matches(PropertyDefinition, MethodDefinition)[accessibility="private"]',
selector: ':matches(PropertyDefinition)[accessibility="private"]',
message: 'Use #private fields instead'
}
]
Expand Down

0 comments on commit b31449d

Please sign in to comment.