This repository has been archived by the owner on Oct 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(import-group-order): wrong sorting of named imports (#29)
The named imports which were multilined weren't sorted properly. We have decided to omit the code-style in order to transform data more easily. Prettier will do its job later :) Close #28
- Loading branch information
Showing
7 changed files
with
61 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { SpaceMembership, SubscriptionPlan, SubscriptionPlanInterval, User } from 'stores/types'; | ||
|
||
console.log('test') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { SubscriptionPlan, SubscriptionPlanInterval, SpaceMembership, User } from 'stores/types'; | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [Import convention has been violated. This is auto-fixable.] | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [Named imports are not sorted in alphabetical order] | ||
|
||
console.log('test') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import React from 'react'; | ||
import { Space, Subscription, SubscriptionSwag, User } from 'something'; | ||
|
||
import { action } from '@storybook/addon-actions'; | ||
|
||
import B from './B.react'; | ||
|
||
import { withSmartKnobs } from '@productboard/storybook-addon-smart-knobs'; | ||
import { storiesOf } from '@storybook/react'; | ||
|
||
storiesOf('B', module) | ||
.addDecorator(withSmartKnobs) | ||
.add('B', () => ( | ||
<B type="primary"/> | ||
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import React from 'react'; | ||
|
||
import { action } from '@storybook/addon-actions'; | ||
import { storiesOf } from '@storybook/react'; | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [Insert line above.] | ||
|
||
import { | ||
~~~~~~~~ | ||
Subscription, | ||
~~~~~~~~~~~~~~~ | ||
SubscriptionSwag, | ||
~~~~~~~~~~~~~~~~~~~ | ||
Space, | ||
~~~~~~~~ | ||
User, | ||
~~~~~~~ | ||
} from 'something'; | ||
~~~~~~~~~~~~~~~~~~~ [Named imports are not sorted in alphabetical order] | ||
|
||
import B from './B.react'; | ||
import { withSmartKnobs } from '@productboard/storybook-addon-smart-knobs'; | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [Import convention has been violated. This is auto-fixable.] | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [Insert line above.] | ||
|
||
storiesOf('B', module) | ||
.addDecorator(withSmartKnobs) | ||
.add('B', () => ( | ||
<B type="primary"/> | ||
)); |