add rules to editorconfig

add style rules for package.json and *.yml to editorconfig