Skip to content

How to sort ES6 getters? #100

Closed
Closed
@dugokontov

Description

If I extend React.Component using ES6 classes, how can I set order of react/sort-comp to put getters before render? For example

import React from 'react';

class Test extends React.Component {
    get something() {
        return 'something';
    }

    render() {
        const options = this.something;
        return <span>{options}</span>;
    }
}

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions