0.1.0 • Published 7 years ago

fix-commas v0.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

fix-commas

A simple CLI tool to convert a JavaScript file from comma-first to comma-last.

Why

Because ESLint's --fix option for comma-style doesn't work properly.

Installation

npm i -g fix-commas

Usage

$: fix-commas --help

  Usage: fix-commas [options]

  Options:

    -h, --help     output usage information
    -V, --version  output the version number
    --fix          Overwrite file with fixed code

Omitting --fix prints the fixed text to stdout.

Known limitations

This tool is pretty bare-bones:

  • Only partial support for comments
  • Only goes from comma-first to comma-last, not the other way around

If you'd like to improve this project, pull requests are welcomed!

Please review the changes made with this tool; don't run it and commit blindly.

License

MIT.

0.1.0

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago