Simple cli to generate Editorconfig files
MIT License
An easy way to generate your editorconfig files.
npm install --global fast-editorconfig
After install Fast Editorconfig you have a command called fec
in your console.
FE create a new file of
.editorconfig
but if you already have an.editorconfig
file in your project and need just add more options to him don't worry, you can do it as well.
Go to the directory which you want add an .editorconfig
file and type:
fec --type js --size 2 --style space
it's will generate an .editorconfig
with this content:
#editorconfig.org
[*.js]
indent-size = 2
indent-style = space
--help
-h
--version
-v
--type
-t
all
,none
- any language type.none
is the same that all
in this case
You can type the entire name of the language, eg:
fec -t ruby -l 2 -s space
And the results is:
[*.rb]
indent-size = 2
indent-style = 2
But wait, the languages supported for now is:
javascript
- .js
ruby
- .rb
python
- .py
If you type all time all name of the language and want this feature just open an issue.
--size
-l
integer
--style
-s
space
- tab
--root
-r
none
.none
is the same as true
--whitespace
-e
none
- false
none
is the same as true
--maxline
-m
integer
--newline
-n
none
- false
none
is the same as true
Fork the project and send pull requests. Open issues
MIT