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

How to make it arrange content like this: template > js > style #12

Open
acrolink opened this issue Oct 12, 2017 · 3 comments
Open

How to make it arrange content like this: template > js > style #12

acrolink opened this issue Oct 12, 2017 · 3 comments

Comments

@acrolink
Copy link

I have noticed that it places style at top then template then js. How to change that order and make it place template > js > style?

@igorparrabastias
Copy link

format: (state) ->
    self = this
    console.log atom
    editor = atom.workspace.getActiveTextEditor()
    text = editor.getText()
    newTextArr = []
    ['css','html', 'js'].forEach((val, index) -> // here is the thing
      newText = self.replaceText(text, val)
      newTextArr.push(newText)
    )
    editor.setText(newTextArr.join('\n\n'))

ref:

['css','html', 'js'].forEach((val, index) ->

@turigeza
Copy link

Style should always be the last according to the style guide
https://vuejs.org/v2/style-guide/#Single-file-component-top-level-element-order-recommended

Please consider changing it. Otherwise we all have to edit the the code.

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

4 participants
@igorparrabastias @turigeza @acrolink and others