0.1.2 • Published 5 years ago

code-guard v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

Code Guard

Formats code using prettier, import-sort and eslint

Installation

npm version npm downloads Build Status npm license

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/
0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago