Add .editorconfig and trim trailing whitespaces.
Add back `sourceMapRoot` as optional config.

Fixes #204.
Fixes #209.
Fixes #238.