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

Preverse comments/'use strict'/variable assignments on top of file #85

Open
hefox opened this issue Jan 16, 2018 · 0 comments
Open

Preverse comments/'use strict'/variable assignments on top of file #85

hefox opened this issue Jan 16, 2018 · 0 comments

Comments

@hefox
Copy link

hefox commented Jan 16, 2018

Hiya!

When I run the migrator, files that are in the format of

'use strict';

// Code comment

const SOME_DEFINE = 10;

var WhateverController = Ember.Controller.extend({});

End up in the form:

import Ember from 'ember';
var WhateverController = Ember.Controller.extend({});

'use strict';

// Code comment

const SOME_DEFINE = 10;

export default FlagAndRefundModalController;

The ideal I believe is:

'use strict';

import Ember from 'ember';

// Code comment

const SOME_DEFINE = 10;

var WhateverController = Ember.Controller.extend({});
export default FlagAndRefundModalController;

The 'use strict' must end up at the top of a file I believe, and it'd be nice having the code that was on top there also.

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