Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does not work on a defined groups #77

Open
Monika6792 opened this issue Dec 2, 2021 · 0 comments
Open

does not work on a defined groups #77

Monika6792 opened this issue Dec 2, 2021 · 0 comments

Comments

@Monika6792
Copy link

Hellou,
I need you to eslint-plugin-sort-class-members, controller, methods in order: public, protected and private.
I created a group: [public-methods] and [private-methods]. But the check doesn't work.
I have this setting:

"plugins": ["sort-class-members"],
"rules": {
	"sort-class-members/sort-class-members": [
		2,
		{
			"order": [
				"[static-properties]",
				"[static-methods]",
				"[properties]",
				"[conventional-private-properties]",
				"constructor",
				"[conventional-public-methods]",
				"[conventional-private-methods]",
				**"[public-methods]"**,
				**"[private-methods]",**
				"[methods]"
			],
			**"groups": {
				"public-methods": [{ "type": "method", "private": false }],
				"private-methods": [{ "type": "method", "private": true }]
			},**
			"accessorPairPositioning": "getThenSet",
			"stopAfterFirstProblem": false
		}
	]
}

Thank you.

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

No branches or pull requests

1 participant