cli to generate a basic XO .editorconfig file
npm install xo-editorconfigCLI to create a basic .editorconfig file compatible with the syntax enforce by XO.
``console`
$ npm install xo-editorconfig -g
`console
$ xo-editorconfig
".editorconfig" file generated
`
An .editorconfig file is in your folder!
Most of editors have a Genrate command to generate an .editorconfig file based on your current settings. In my case, I have many projects using a lot of different styles. I want to use XO on all my new projects but I couldn't use the Generate command because my current settings are the ones set for my company projects, so it would generate an editor config file using 4-space indentation...
In the end I had to copy an .editorconfig` file around to all my new projects which ends up being quite tedious. This CLI tool solves my problem.