Skip to content

Support for different js-mode offset variables #63

@notetiene

Description

@notetiene

Since js-mode has different offset variables, I was wondering if we could support those also.

Currently, if I use this file:

function test(arg) {
    switch(arg) {
      case 'foo':
          return 'bar'
      default:
          return 'baz'
    }
}

the guessed indentation is 2.

The problem is that js-switch-indent-offset was set to 2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions