I'm editing JSX files with web-mode and our project doesn't use semicolons at the end of the line.
Whenever I press enter at the end of the line, web-mode is auto-indenting two spaces because the semicolon is missing. How can I prevent this?
I've seen that this question has the same problem, but it didn't help me solve this.
As far as I know, there aren't any web-mode specific indentation rules in my emacs init.el, but to be on the safe side, here are all my web-mode settings:
Update! I just realized that this happens in lines ending with functions, but not with lines that only have variable assignments. Here's a sample:
console.log() cursor is here when I press enter var blub = 2 cursor is here when I press enter.
Now I'm really confused.