首页 > 其他分享 >bug|git 提交代码报错|vue-cli-service lint found some errors. Please fix them and try committing again. err

bug|git 提交代码报错|vue-cli-service lint found some errors. Please fix them and try committing again. err

时间:2023-02-02 15:58:00浏览次数:61  
标签:__ git no defined Please 报错 error

前言

git 提交代码报错,使用除了参考链接里的解决方案,正好复习一下之前学习的 Git Hooks:

  • 错误 git 日志

    git-error-1675323308267

    ...
    ✖ vue-cli-service lint found some errors. Please fix them and try committing again.
    error: 'describe' is not defined (no-undef) at __tests__\unit\HelloWorld.test.js:5:1:
    ...
    error: 'it' is not defined (no-undef) at __tests__\unit\HelloWorld.test.js:6:3:
    ...
    pre-commit hook failed (add --no-verify to bypass)
    

解决方案

Git Hooks

参考链接

git提交代码会报 vue-cli-service lint found some errors. Please fix them and try committing again

标签:__,git,no,defined,Please,报错,error
From: https://www.cnblogs.com/djsz3y/p/17086235.html

相关文章

  • 55th 2023/2/1 模拟赛总结39
    这次额,几乎是摆烂的一次比赛早上以为手表掉了,然后就非常急,还因为一些BUG导致定位手表的位置似乎在校外然后还以为被人捡到了,打电话还打不通总而言之,几乎没有心思在比......
  • MongoDB常用的语句:
    MongoDB常用的语句://------------------------------------MongoDB增删改查-----------------------------------------------//MongoDB插入数据//MongoDB不需要建......
  • 54th 2023/1/31 模拟赛总结38
    这次该拿的分全拿到但是T2是真的没想到后来发现简单是思维没想到这种可以往贪心想是真的但就是没想通正确性总结这次打得尽全力,所以不用灰心,一个人多多少少会有遗......
  • mac编译wat报错解决方案
    按照github的步骤一步步来的时候,最后一步出现问题,ld:cannotlinkdirectlywithdylib/framework,yourbinaryisnotanallowedclientof/usr/lib/libcrypto.dylib......
  • Python 根据经纬度坐标计算位置
    示例代码 frommathimportradians,cos,sin,asin,sqrt#公式计算两点间距离(m)defgeodistance(lng1,lat1,lng2,lat2):#lng1,lat1,lng2,lat2=(116.37......
  • ElasticSearch、kibana、logstach部署
    ElasticSearch+NLog实现https://blog.csdn.net/weixin_51439775/article/details/128539623https://www.cnblogs.com/piscesLoveCc/p/7230426.htmlElasticSearch、kibana......
  • 将char* 赋值给std::string的一些陷阱
    这段时间,总是要使用char或者char*赋值给std::string,踩了不少坑。于是写了个测试代码,如果你不想看我的代码,可以跳到下面直接看总结:   #include<string> ......
  • 身份证验证相关公共方法
     身份证验证相关公共方法 packagecom.iktapp.api.utils;importcom.iktapp.api.constants.BusinessConstants;importorg.apache.logging.log4j.util.Strings;......
  • Codeforces Round #831 (Div. 1 + Div. 2) A-H
    CodeforcesRound#831(Div.1+Div.2)A-H题解好久之前写的,发现忘记发了比赛题目质量高,推荐!传送门CodeforcesRound#831(Div.1+Div.2)A.FactoriseN+M题......
  • Python字符串如何转为bytes对象
    1,字符串转换byte字节指的是计算机上面用来表示存储值的一种计量单位,但是它放在python里面的话就是一种数据类型,这个数据类型的名称为bytes。可以将其看做是二进制字节格......