Skip to content

Sorting seems to not follow the GIF demo #18

@zedtux

Description

@zedtux

The GIF demo is showing exactly what I'd like to have, but when I'm running the package using CTRL + ALT + o, I don't have the excepted result.

Here is an example file before sorting :

import 'core-js'

import { AppRegistry } from 'react-native'
import App from './src/App'
import { name as appName } from './app.json'

AppRegistry.registerComponent(appName, () => App);

And then after sorting :

import 'core-js'

import App from './src/App'
import { AppRegistry } from 'react-native'
import { name as appName } from './app.json'

AppRegistry.registerComponent(appName, () => App);

The local project import statement import App from './src/App' is coming before the external library import import { AppRegistry } from 'react-native' which is wrong as stated by eslint.

CTRL + ALT + o shouldn't have change the order of imports, it could have added an empty line between the external and local libraries imports.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions