Fixed warn issue in NPM and added editorconfig