Content-Length: 286778 | pFad | https://github.com/jsx-eslint/eslint-plugin-react/issues/100

16 How to sort ES6 getters? · Issue #100 · jsx-eslint/eslint-plugin-react · GitHub
Skip to content

How to sort ES6 getters? #100

Closed
Closed
@dugokontov

Description

@dugokontov

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

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









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: https://github.com/jsx-eslint/eslint-plugin-react/issues/100

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy