import-js/eslint-plugin-import

Add equivalent of object-property-newline for import declaration

Open

#344 aperta il 15 mag 2016

Vedi su GitHub
 (8 commenti) (31 reazioni) (0 assegnatari)JavaScript (1540 fork)batch import
acceptedhelp wantedrule proposalsemver-minorstyle-guide

Metriche repository

Star
 (4946 star)
Metriche merge PR
 (Merge medio 138g 22h) (3 PR mergiate in 30 g)

Descrizione

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';

Guida contributor