mirror of
https://github.com/haveno-dex/haveno-ui.git
synced 2024-10-01 07:35:39 -04:00
chore(dev): updated precommit hook
This commit is contained in:
parent
9591f3f658
commit
b0d51c5efa
@ -1,5 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. "$(dirname "$0")/_/husky.sh"
|
. "$(dirname "$0")/_/husky.sh"
|
||||||
|
|
||||||
yarn format --list-different
|
|
||||||
yarn nano-staged
|
yarn nano-staged
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
import { resolve, sep } from "path";
|
import { resolve, sep } from "path";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
// eslint
|
// format
|
||||||
"*.{js,ts,tsx}": "eslint --cache --fix",
|
"*.{js,ts,tsx}": ["yarn format", "yarn license", "eslint --cache --fix"],
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Run typechecking if any type-sensitive files was staged
|
* Run typechecking if any type-sensitive files was staged
|
||||||
@ -30,7 +30,7 @@ export default {
|
|||||||
return Array.from(
|
return Array.from(
|
||||||
filenames.reduce((set, filename) => {
|
filenames.reduce((set, filename) => {
|
||||||
const pack = filename.replace(pathToPackages, "").split(sep)[0];
|
const pack = filename.replace(pathToPackages, "").split(sep)[0];
|
||||||
set.add(`npm run typecheck:${pack} --if-present`);
|
set.add(`yarn typecheck:${pack} --if-present`);
|
||||||
return set;
|
return set;
|
||||||
}, new Set())
|
}, new Set())
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user