import-js/eslint-plugin-import

Add equivalent of object-property-newline for import declaration

Open

#344 ouverte le 15 mai 2016

Voir sur GitHub
 (8 commentaires) (31 réactions) (0 assignés)JavaScript (1 540 forks)batch import
acceptedhelp wantedrule proposalsemver-minorstyle-guide

Métriques du dépôt

Stars
 (4 946 stars)
Métriques de merge PR
 (Merge moyen 138j 22h) (3 PRs mergées en 30 j)

Description

object-property-newline

While formatting preferences are very personal, a number of style guides require that object properties be placed on separate lines for better readability. Another argument in favor of this style is that it improves the readability of diffs when a property is changed:

Examples of incorrect code for this rule:

import {createMovieMatcher,matcher} from './../src/movieRecognizer';

Examples of correct code for this rule:

import {
    createMovieMatcher,
    matcher
} from './../src/movieRecognizer';

Guide contributeur