For more information on other packages go here
--print-config will output the config for the cli. Useful for debugging issues / bug reporting.
Typicall this is a dev only solution, unless your package is shipping this dependency as part of it's toolchain. Examples below show how to install it in your package with --dev/-D flag commands.
npm i -D @vllc/eslint-tsc-diff
pnpm i -D @vllc/eslint-tsc-diff
yarn add -D @vllc/eslint-tsc-diff
To integrate eslint-tsc-diff into your workflow please add it to your git hooks.
husky pre-commit
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
pnpm run eslint-diff:st
git add .Not that the git add . is required to commit your changes provided the --fix flag made changes.
husky pre-push
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
# Option 1
# npx @vllc/eslint-tsc-diff --staged
# Option 2
# node_modules/@vllc/eslint-tsc-diff
npm i -g @vllc/eslint-tsc-diff
pnpm i -g @vllc/eslint-tsc-diff
yarn global add @vllc/eslint-tsc-diff
Run the command eslint-tsc-diff. It should now exist and run just like using npx | yarn | pnpx
- Add a
.eslint-tsc-diff.jsonto your project's rootDirectory - When running the cli, the cli will automatically detect and inject the variables from
.eslint-tsc-diff.json- Inspect the cli
--helpdefaults to confirm defaults are applied or run--print-configto confirm that the config is applying --verboseverbose mode will let you know if it was successful. Noting that verbose mode can be set from the config too.
- Inspect the cli
Run nx build eslint-tsc-diff to build the library.
Run nx test eslint-tsc-diff to execute the unit tests via Jest.