You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched for existing issues that already report this problem, without success.
Stencil ESLint Version
0.8.0
Current Behavior
When using fields and methods marked with private identifier # like #methodName we get warning from eslint, triggering the rule ESLint: Own class methods cannot be public(@stencil-community/ own-methods-must-be-private), the fix is to add the private modifier. This on the other hand fails with typescript TS18010: An accessibility modifier cannot be used with a private identifier.
Expected Behavior
Have eslint recognize names starting with # as being private, and don't report violation.
Steps to Reproduce
Have a simple component like:
@Component({/*...*/})
class foo{
#someName(){ /*...*/ }
}
Eslint will try to add the private keyword, but then typescript reports invalid syntax.
Code Reproduction URL
no url
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Prerequisites
Stencil ESLint Version
0.8.0
Current Behavior
When using fields and methods marked with private identifier # like
#methodName
we get warning from eslint, triggering the ruleESLint: Own class methods cannot be public(@stencil-community/ own-methods-must-be-private)
, the fix is to add theprivate
modifier. This on the other hand fails with typescriptTS18010: An accessibility modifier cannot be used with a private identifier.
Expected Behavior
Have eslint recognize names starting with # as being private, and don't report violation.
Steps to Reproduce
Have a simple component like:
Eslint will try to add the
private
keyword, but then typescript reports invalid syntax.Code Reproduction URL
no url
Additional Information
No response
The text was updated successfully, but these errors were encountered: