I am using comma-first style in JavaScript, when indenting brackets the output is:
obj = {
type: 'email'
, meta: {
// le code
}
}
I would like the indentation to be:
obj = {
type: 'email'
, meta: {
// le code
} // <- here
}
Basically what I want it do to is when indenting ‘} ) ]’ to ignore the first comma and the space after it. I tried looking at some plugins but I don’t know python, could someone guide me, please?
I want to write a plugin that would be a wrapper for the indenting mechanism that looks at the previous row and sets the indentation to ignore the first comma and spaces, is this complicated?
Any help is appreciated, thanks