> git add -A -- . warning: LF will be replaced by CRLF in src/components/RightContent/index.less. The file will have its original line endings in your working directory > git commit --quiet --allow-empty-message --file - > git ls-files --stage -- C:\workspace\wkb\wkb-oms-ui\src\components\RightContent\index.less > git cat-file -s 98092c98d269faadade5c09fe6c9036e72c4d8c1 > git show --textconv :src/components/RightContent/index.less > git ls-files --stage -- C:\workspace\wkb\wkb-oms-ui\src\components\RightContent\index.less > git cat-file -s 98092c98d269faadade5c09fe6c9036e72c4d8c1 > git show --textconv :src/components/RightContent/index.less > running pre-commit hook: npm run precommit
[STARTED] Preparing... [SUCCESS] Preparing... [STARTED] Running tasks... [STARTED] Running tasks for **/*.less [STARTED] Running tasks for **/*.{js,jsx,ts,tsx} [STARTED] Running tasks for **/*.{js,jsx,tsx,ts,less,md,json} [SKIPPED] No staged files match **/*.{js,jsx,ts,tsx} [STARTED] stylelint --syntax less [STARTED] prettier --write [SUCCESS] prettier --write [SUCCESS] Running tasks for **/*.{js,jsx,tsx,ts,less,md,json} [FAILED] stylelint --syntax less [FAILED] [FAILED] stylelint --syntax less [FAILED] [SUCCESS] Running tasks... [STARTED] Applying modifications... [SKIPPED] Skipped because of errors from tasks. [STARTED] Reverting to original state because of errors... [SUCCESS] Reverting to original state because of errors... [STARTED] Cleaning up... [SUCCESS] Cleaning up...
× stylelint --syntax less:
src/components/RightContent/index.less 73:3 × Expected "color" to come before "background-color" in group "Typography" order/properties-order
npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! ant-design-pro@5.0.0-alpha.0 precommit: `lint-staged` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the ant-design-pro@5.0.0-alpha.0 precommit script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\andy\AppData\Roaming\npm-cache\_logs\2020-09-29T13_37_15_414Z-debug.log