Skip to content

multiple functions defined in an object causes indentation to go wrong after the second one #52

@unphased

Description

@unphased
#!/usr/bin/env node         
"use strict";               
module.exports = {          
  "a": function() {         

  },                        
  "b": function() {         

  },                        

};                          

When you enter a new entry, it adds an extra indent.

Verified that if i disable the plugin the indentation starts working normally again in this situation.

Also curious is that it requires two such functions, typing the "b" item does not cause erroneous indentation to occur. Note also the keys do not need to be in quotes to reproduce.

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