Desired indent size for .js files in openstates.org?


#1

The .editorconfig calls for indent of 2.

The files themselves are a mix of 2 and 4, sometimes within the same file :frowning: .

I’ll clean up in one discrete PR, if desired, but want to make sure that a switch to 4 isn’t underway.

For what VERY little it’s worth, druthers=4


#2

I think 2 is more standard in the JS community, so I’m inclined to go w/ that.

we haven’t really adopted tools around keeping JS nicely formatted/linted the way we have with Python, but this is a good prod to do so


#3

I just pushed something to develop to implement this, npm run prettier will tidy all JS files in the main directory