import-js / import-js/eslint-plugin-import

Add equivalent of object-property-newline for import declaration

Open
#344 8 comments 31 reactions 0 assignees View on GitHub
accepted help wanted rule proposal semver-minor style-guide
Dominant language
JavaScript
Stars
5.9k
Forks
1.5k
PR merge metrics
No merged PRs in 30d

Description

[`object-property-newline`](http://eslint.org/docs/rules/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:

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

Examples of _correct_ code for this rule:

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

Contributor guide

Open the contributing guide

Research direction

Start with the linked object-property-newline rule and inspect the repository's import-related rule entry points. The change is complete when an import with multiple named specifiers is reported unless those specifiers are placed on separate lines, matching the incorrect and correct examples in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.