Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

Fix the fixer :) for unsorted imports using as syntax #43

Merged
merged 1 commit into from
May 13, 2019

Conversation

jukben
Copy link
Contributor

@jukben jukben commented May 13, 2019

check-unused-flux-dependencies

Issue was correctly discovered, but fixer failed to sort it. Added test.

@jukben jukben requested a review from mauricekleine May 13, 2019 13:16
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [Named imports are not sorted in alphabetical order]

import { createMagic } from 'constants/magic';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [Import convention has been violated. This is auto-fixable.]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's wrong with this one?

Copy link
Contributor Author

@jukben jukben May 13, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is actually nasty hack we are using. This line is there every time the issue is autofixable – that's because the fixer is connected to this line and the fixer works that it rewrite all the imports at once, not issue per issue. * shy boi *

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I see! Okay makes sense, thanks 🎂

@jukben jukben merged commit 6138b18 into master May 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants