-
-
Notifications
You must be signed in to change notification settings - Fork 33
Closed
Labels
Breaking ChangeThis change will require a new major release.This change will require a new major release.Status: ReleasedIt's now live.It's now live.Type: BugInconsistencies or issues which will cause a problem for users or implementors.Inconsistencies or issues which will cause a problem for users or implementors.
Description
Bug Report
Seems like rule does not work as intended.
Expected behavior
Rule below should not produce error for variables which follows # symbol (TS private modifier)
'functional/prefer-immutable-types': [
'error',
{
ignoreNamePattern: ['_', '#']
}
],
Actual behavior
Works for
_anyName variable
But produces error for
#anyName variable
Property should have a readonly modifier eslint [functional/prefer-immutable-types]
Steps to reproduce
Latest version (7.2.0) with the rule snippet above
Proposed changes
Metadata
Metadata
Assignees
Labels
Breaking ChangeThis change will require a new major release.This change will require a new major release.Status: ReleasedIt's now live.It's now live.Type: BugInconsistencies or issues which will cause a problem for users or implementors.Inconsistencies or issues which will cause a problem for users or implementors.