Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moves comment line #11

Open
winkler1 opened this issue Dec 9, 2020 · 0 comments
Open

Moves comment line #11

winkler1 opened this issue Dec 9, 2020 · 0 comments

Comments

@winkler1
Copy link

winkler1 commented Dec 9, 2020

Nice tool! One issue: I use flow, so there's a /* @flow */ comment in the 1st line of source files.

Before:

/* @flow */
import calcDropTargetClass from "../common/calcDropTargetClass";
import classNames from "classnames";
import dropSourceInTarget from "../StandardShow/dropSourceInTarget";
import { DropTarget } from "react-dnd";
import React from "react";
import SearchTypes from "../../constants/SearchTypes";

After:

import classNames from "classnames";
import React from "react";
import { DropTarget } from "react-dnd";
import SearchTypes from "../../constants/SearchTypes";
/* @flow */
import calcDropTargetClass from "../common/calcDropTargetClass";
import dropSourceInTarget from "../StandardShow/dropSourceInTarget";

Looks like it's keeping comments above their following import, but moving the comment messes things up. Maybe special-case and keep /* flow */ at top?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant