Skip to content

Commit

Permalink
style(lint): no this in static context
Browse files Browse the repository at this point in the history
  • Loading branch information
Gh61 committed Jan 25, 2024
1 parent e368704 commit c237565
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@
}
],

// no this. in static calls
"no-restricted-syntax": ["error", {
"selector": "MethodDefinition[static = true] ThisExpression",
"message": "this.member is prohibited for static members. Only ClassName.member is allowed."
}],

"@typescript-eslint/no-use-before-define": ["error", {
"functions": true,
"classes": false, // Allow use of classes defined under
Expand Down

0 comments on commit c237565

Please sign in to comment.