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

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

Open
DerZyklop opened this issue Sep 11, 2019 · 0 comments
Open

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

DerZyklop opened this issue Sep 11, 2019 · 0 comments

Comments

@DerZyklop
Copy link

$ ./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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant