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

Not supporting arrow functions in a class? #26

Open
stlst opened this issue Jul 17, 2019 · 1 comment
Open

Not supporting arrow functions in a class? #26

stlst opened this issue Jul 17, 2019 · 1 comment

Comments

@stlst
Copy link

stlst commented Jul 17, 2019

I use arrow functions within my class, but "lines-between-class-members" doesn't work.

code:

class user {
    public func1 = () => {
        // some codes
    }
    public func2 = () => {
        // some codes
    }
    public func3(){
        // some codes
    }
}

what I expect:

class user {
    public func1 = () => {
        // some codes
    }

    public func2 = () => {
        // some codes
    }

    public func3(){
        // some codes
    }
}

However, the output now is:

class user {
    public func1 = () => {
        // some codes
    }
    public func2 = () => {
        // some codes
    }

    public func3(){
        // some codes
    }
}

We see that func1 and func2 are not formatted correctly while func3 can be formatted.
It seems that "lines-between-class-members" doesn't support arrow functions.

@zhoudqa
Copy link

zhoudqa commented Aug 13, 2019

My friend found this issue too, and she want to know when this issue can be fixed. Can you fork and fix it?

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

2 participants