Refactor editorconfig.js