diff --git a/README.md b/README.md index f3b4559d..5bb6080d 100644 --- a/README.md +++ b/README.md @@ -1223,6 +1223,25 @@ Other Style Guides foo.init(); ``` + + - [10.8](#modules--multiline-imports-over-newlines) Multi-line imports should be preferred over single line + + > Why? The curly braces follow the same indentation rules as every other curly brace block in the style guide, as do the trailing commas. + + ```javascript + // bad + import {longNameA, longNameB, longNameC, longNameD, longNameE} from 'path'; + + // good + import { + longNameA, + longNameB, + longNameC, + longNameD, + longNameE + } from 'path'; + ``` + **[⬆ back to top](#table-of-contents)** ## Iterators and Generators