Skip to content

Commit

Permalink
Add an ESLint rule to prevent private methods for now. (#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanKingston authored Jul 10, 2023
1 parent 9532b07 commit 50eb0d7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@
"windowsInteropRemoveEventListener": "readonly"
},
"rules": {
"no-restricted-syntax": [
"error",
{
"selector": "MethodDefinition[key.type='PrivateIdentifier']",
"message": "Private methods are currently unsupported in older WebKit and ESR Firefox"
}
],
"indent": ["error", 4],
"require-await": ["error"],
"promise/prefer-await-to-then": ["error"],
Expand Down

0 comments on commit 50eb0d7

Please sign in to comment.