Alessandro Polverini created NETBEANS-219:
---------------------------------------------

             Summary: Bad indentation when using imports without trailing 
semicolons
                 Key: NETBEANS-219
                 URL: https://issues.apache.org/jira/browse/NETBEANS-219
             Project: NetBeans
          Issue Type: Bug
          Components: javascript - Editor
    Affects Versions: 8.2
         Environment: Java 8, netbeans 8.2
            Reporter: Alessandro Polverini


Let's consider the following snippet taken from a standard ember js app:

{code:javascript}
import Application from '@ember/application'
import Resolver from './resolver'
import loadInitializers from 'ember-load-initializers'
import config from './config/environment'

const App = Application.extend({
  modulePrefix: config.modulePrefix,
  podModulePrefix: config.podModulePrefix,
  Resolver
})

{code}

When reformatting the source the outputs becomes:

{code:javascript}
import Application from '@ember/application'
        import Resolver from './resolver'
        import loadInitializers from 'ember-load-initializers'
        import config from './config/environment'

        const App = Application.extend({
          modulePrefix: config.modulePrefix,
          podModulePrefix: config.podModulePrefix,
          Resolver
        })
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

Reply via email to