Skip to content
This repository was archived by the owner on Feb 21, 2022. It is now read-only.

ter-arrow-parens warnings influenced by code comments #383

@DerZyklop

Description

@DerZyklop

$ ./node_modules/tslint/bin/tslint --version
5.20.0
$ tsc --version
Version 2.5.3

tslint.json configuration

"ter-arrow-parens": true,

typescript code being linted

this.someMethod(
	someProperty,
	[
		/** Set of communications where members not responded yet */
		(item) => {
			if (item.communicationState !== State.CP_NOT_RESPONDED) return false;
			return true;
		},

		/** Sets of communications where users can not */
		(item) => item.lastAction === Action.CP_IS_ILL,
		(item) => item.lastAction === Action.CP_IS_ABSENT,
		(item) => item.lastAction === Action.CP_ASSIGNED_SAME_TIME,
		(item) => item.lastAction === Action.CP_ASSIGNED_SAME_SHIFT,
	]
);

actual behavior

Warnings for properties of those functions that have comment:
Screenshot 2019-09-11 at 11 09 45

Screenshot 2019-09-11 at 11 10 01

expected behavior

Warnings not influenced by comments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions