Installation (global)
Install globally:
$ npm i -g lint
Usage (global)
Get inside your repository:
$ cd /path/to/repo
Use it globally
$ lint [COMMAND]
Start new repository:
$ lint init
Lint files linted by git:
$ lint
To install git hooks:
$ cd path/to/repository
$ lint install:hooks
Installation (local)
Install into your devDependencies:
$ npm i -D lint
Usage (local)
Use it with NPX from inside your repository:
$ npx lint [COMMAND]
To install git hooks:
$ npx lint install:hooks
Usage: lint [options] [command]
Options:
-v, --version output the version number
-h, --help output usage information
Commands:
init Initializes current repository
install:hooks Install git hooks
install:eslint Install ESLint
install:erblint Install ERB Lint
install:brakeman Install Brakeman
install:rubocop Install Rubocop
install:stylelint Install StyleLint
lint:staged [options] Lint Staged files
pre-commit [options] Simulates pre-commit git hook actions.
prepare-commit-msg Triggers 'prepare-commit-msg' hook actions.
post-commit Triggers 'post-commit' hook actions.
prettify <extenstion> Run Prettier on project.
login Sign in on local device.
logout Sign out from local device.
signup Creates an account
whoami Get current user status
Sign Up
Create your free Omnilint account:
$ lint signup
Log In
Log in with your existing Omnilint account:
$ lint login
Version
Print the CLI version:
$ lint version
Help
Print the list of available commands:
$ lint --help
Website
https://www.omnilint.com