methane-plugin-cs-cli
v3.0.0-beta.7
Published
Fetch code style from CLI arguments.
Downloads
8
Readme
methane-plugin-cs-cli
Pass your custom code style via CLI arguments.
Installation
You don't need to install this plugin manually, and it will be installed once you installed
methane
.
Using Yarn:
$ yarn add --dev methane-plugin-cs-cli
Using npm:
$ npm install --save-dev methane-plugin-cs-cli
Usage
Just install this plugin and methane will load this plugin automatically.
Next, you can pass code style options through CLI like this:
$ ch4 --semi
$ ch4 --semi --fix
$ ch4 --use-tab --fix **/*.js
All available options:
--indent <type> Specify indent type.
It only can be 'tab' or a number (for spaces).
--use-tab Use tab for indentation.
--semi Add semicolons.
--linebreak <type> Specify linebreak style.
It only can be 'lf' or 'crlf'.
--quotes <type> Specify quotes type.
It only can be 'single' or 'double'.
--double-quotes Use double quotes.