import-js/eslint-plugin-import

Add equivalent of object-property-newline for import declaration

開放

#344 建立於 2016年5月15日

 (8 則留言) (31 個反應) (0 位負責人)JavaScript (1,549 個分叉)batch import
acceptedhelp wantedrule proposalsemver-minorstyle-guide

倉庫指標

星標
 (5,940 顆星)
PR 合併指標
 (平均合併 138天 22小時) (30 天內合併 3 個 PR)

描述

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

貢獻者指南