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

Comments not re-indented properly #28

Closed
fastfedora opened this issue Nov 8, 2016 · 1 comment
Closed

Comments not re-indented properly #28

fastfedora opened this issue Nov 8, 2016 · 1 comment

Comments

@fastfedora
Copy link

If I am converting from a file with 2 space indentation to 4 space indentation, all the code gets indented correctly, but comments remain at their original indentation.

For instance:

class {
  /**
   * My doc
   */
  execute() {
    // do something cool
    doSomething();
  }
}

gets reformatted into:

class {
  /**
   * My doc
   */
    execute() {
    // do something cool
      doSomething();
    }
}

when it should be:

class {
    /**
     * My doc
     */
    execute() {
      // do something cool
      doSomething();
    }
}
@TheSavior
Copy link
Owner

This sounds like an issue with eslint, the formatter just calls out to eslint.

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

2 participants