jsx-eslint/eslint-plugin-react

Add functionsLast to sort-prop-types

Open

#1 465 ouverte le 6 oct. 2017

Voir sur GitHub
 (0 commentaires) (3 réactions) (0 assignés)JavaScript (2 797 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (8 630 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

Currently the sort-prop-types rule, allows you to set callbacksLast: true, which makes it so callbacks beginning with on are listed last.

I would like to see this expanded with a functionsLast: true option because I don't typically name my callbacks / functions with on.

Guide contributeur