Skip to content
This repository was archived by the owner on Jan 26, 2019. It is now read-only.

Conversation

@iamclaytonray
Copy link
Contributor

Fixes: Array has too many items. Expected {0} or fewer. on member-ordering

Fixes: `Array has too many items. Expected {0} or fewer.` on member-ordering
@iamclaytonray
Copy link
Contributor Author

@iamclaytonray
Copy link
Contributor Author

^ Just kidding. That somehow broke for me. They must have outdated docs. Let me research further and figure out why I'm getting a warning

@DorianGrey
Copy link
Collaborator

Closing this, since the repository containing the change no longer exists.

@DorianGrey DorianGrey closed this Feb 6, 2018
@iamclaytonray
Copy link
Contributor Author

Yeah, that's fine. I mean to close this a while back

@rosdi
Copy link

rosdi commented Apr 5, 2018

I am confused, so what is the correct format for "member-ordering" in tslint.json? According to the doc it should be in this format:

"member-ordering": [
    true,
    {
        "order": [
            "public-before-private",
            "static-before-instance",
            "variables-before-functions"
        ]
    }
],

But in the template it is still:

"member-ordering": [
    true,
    "public-before-private",
    "static-before-instance",
    "variables-before-functions"
],

Which generates Array has too many items. Expected {0} or fewer. warning.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants