xo-editorconfig

cli to generate a basic XO .editorconfig file

Usage no npm install needed!

<script type="module">
  import xoEditorconfig from 'https://cdn.skypack.dev/xo-editorconfig';
</script>

README

CLI to create a basic .editorconfig file compatible with the syntax enforce by XO.

Install

$ npm install xo-editorconfig -g

Run

$ xo-editorconfig

".editorconfig" file generated

An .editorconfig file is in your folder!

Why?

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.