Using editorconfig with spacemacs on OSX

Step 1

brew install editorconfig

Step 2

Inside your .spacemacs which you can access via SPC f e d

 dotspacemacs-additional-packages
 '(
   editorconfig
   )
(defun dotspacemacs/user-config ()
    (editorconfig-mode 1)
)

Step 3

Create a .editorconfig file in the root of your project or your home dir.

Example editorconfig files can be found here: editorconfig