Install globally:
$ npm i -g lint
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
Install into your devDependencies:
$ npm i -D lint
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
Create your free Omnilint account:
$ lint signup
Log in with your existing Omnilint account:
$ lint login
Print the CLI version:
$ lint version
Print the list of available commands:
$ lint --help