@superdispatch/js-tools
v0.7.0
Published
CLI tools for JavaScript
Downloads
257
Readme
@superdispatch/js-tools
Installation
yarn add @superdispatch/js-tools -D
Usage
$ npm install -g @superdispatch/js-tools
$ js-tools COMMAND
running command...
$ js-tools (-v|--version|version)
@superdispatch/js-tools/0.7.0 darwin-x64 node-v16.13.1
$ js-tools --help [COMMAND]
USAGE
$ js-tools COMMAND
...
With lint-staged
:
module.exports = { '*': 'js-tools lint --fix' };
Commands
js-tools lint
Run all linters
USAGE
$ js-tools lint
OPTIONS
--cache Only check changed files
--fix Run auto-fixes
--help show CLI help
--quiet Do not emit warnings
EXAMPLES
$ js-tools lint --fix
$ js-tools lint --quiet
$ js-tools lint foo.js bar.js
See code: dist/commands/lint/index.js
js-tools lint:eslint
Run ESLint
USAGE
$ js-tools lint:eslint
OPTIONS
--cache Only check changed files
--fix Run auto-fixes
--help show CLI help
--quiet Do not emit warnings
EXAMPLES
$ js-tools lint --fix
$ js-tools lint --quiet
$ js-tools lint foo.js bar.js
See code: dist/commands/lint/eslint.js
js-tools lint:prettier
Run Prettier
USAGE
$ js-tools lint:prettier
OPTIONS
--cache Only check changed files
--fix Run auto-fixes
--help show CLI help
--quiet Do not emit warnings
EXAMPLES
$ js-tools lint --fix
$ js-tools lint --quiet
$ js-tools lint foo.js bar.js
See code: dist/commands/lint/prettier.js
js-tools lint:yarn-deduplicate
Deduplicate yarn dependencies
USAGE
$ js-tools lint:yarn-deduplicate
OPTIONS
--cache Only check changed files
--fix Run auto-fixes
--help show CLI help
--quiet Do not emit warnings
EXAMPLES
$ js-tools lint --fix
$ js-tools lint --quiet
$ js-tools lint foo.js bar.js
See code: dist/commands/lint/yarn-deduplicate.js