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

Formatting of requirejs modules is not how we want it #1

Open
PaulTondeur opened this issue Sep 22, 2013 · 0 comments
Open

Formatting of requirejs modules is not how we want it #1

PaulTondeur opened this issue Sep 22, 2013 · 0 comments
Labels

Comments

@PaulTondeur
Copy link
Member

require([
    'common',

    //VIEWS
    'view/TestView',

    //MODELS
    'model/TestModel',

    //COMMANDS
    'command/OnTestModelChangedLogSomethingCommand'

], function(
    common,

    //VIEWS
    TestView,

    //MODELS
    TestModel,

    //COMMANDS
    OnTestModelChangedLogSomethingCommand) {

will be formatted as:

require([
    'common',

    //VIEWS
    'view/TestView',

    //MODELS
    'model/TestModel',

    //COMMANDS
    'command/OnTestModelChangedLogSomethingCommand'

], function(common, //VIEWS
            TestView, //MODELS
            TestModel, //COMMANDS
            OnTestModelChangedLogSomethingCommand) {

The first example is how I would like it to be. The second is how it is currently being formatted. I could live with the indenting by spaces, but I would like to have the comments to be on new lines as it was originally.

Don't know if we can get this right in an automatic way.

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

No branches or pull requests

1 participant