oc-shopaholic / oc-shopaholic-plugin

🛍️ No. 1 e-commerce platform for October CMS
https://shopaholic.one
GNU General Public License v3.0
425 stars 51 forks source link

Sneakers theme - GIT problem #293

Open zaqsk opened 4 years ago

zaqsk commented 4 years ago

When I try to commit via sourceTree Ive got this error:

git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree commit -q -F /var/folders/qx/wt85vvk13417x39xwbl3p4ym0000gn/T/SourceTreeTemp.zoJ7Ea 
husky > pre-commit (node v10.13.0)

> @ lint:css /Applications/MAMP/htdocs/hormann
> stylelint themes/lovata-shopaholic-sneakers/partials/**/*.css themes/lovata-shopaholic-sneakers/css/**/*.css --fix

> @ lint:js /Applications/MAMP/htdocs/hormann
> eslint themes/lovata-shopaholic-sneakers/partials/**/*.js themes/lovata-shopaholic-sneakers/js/**/*.js --fix

/Applications/MAMP/htdocs/hormann/themes/lovata-shopaholic-sneakers/js/shopaholic-order/shopaholic-coupon.js
  1:24  error  Unable to resolve path to module '../shopaholic-cart/components/shopaholic-update-info'  import/no-unresolved
  1:24  error  Missing file extension for "../shopaholic-cart/components/shopaholic-update-info"        import/extensions

 2 problems (2 errors, 0 warnings)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ lint:js: `eslint themes/lovata-shopaholic-sneakers/partials/**/*.js themes/lovata-shopaholic-sneakers/js/**/*.js --fix`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the @ lint:js 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!     /Users/martinpolak/.npm/_logs/2020-06-08T11_54_36_506Z-debug.log
husky > pre-commit hook failed (add --no-verify to bypass)
Completed with errors, see above
kharanenka commented 4 years ago

Hi! You should try to remove "husky" section in your package.json file

  "husky": {
    "hooks": {
      "pre-commit": "npm run lint:css && npm run lint:js",
      "post-merge": "post-npm-install",
      "post-rebase": "post-npm-install"
    }
  },