0.1.2 • Published 6 years ago
code-guard v0.1.2
Code Guard
Formats code using prettier, import-sort and eslint
Installation
npm i -D code-guard
Usage
code-guard lint
run linters
Options:
--version Show version number [boolean]
--help Show help [boolean]
--fix automatically fix errors [boolean] [default: false]
--changed runs only on changed files [boolean]
--changedSince runs only on changed files since the provided branch[string]
--ignorePatterns An array of regexp pattern strings that are matched against
all file paths. If the file path matches any of the
patterns, it will be skipped. [array] [default: []]
Examples
# Format files before commit
yarn lint --fix --changed
# Format pull request files
yarn lint --fix --changedSince origin/master
# Ignore specific patters
yarn lint --ignorePatterns /generated/