A generic .editorconfig for Node JS projects
$ cd /path/to/project/
$ npx node-editorconfig
$ npm install --global node-editorconfig
$ cd /path/to/project/
$ node-editorconfig
✓ .editorconfig file added at /path/to/project/.editorconfig
--overwrite
(To overwrite the .editorconfig file, if it already exists)
$ npx node-editorconfig --overwrite
✓ .editorconfig file overwritten at /path/to/project/.editorconfig