prettier 和 commitlint 配置问题
来源:2-2 配置 eslint、 prettier 和 commitlint 规范工程

慕后端6149810
2021-04-01
也许是版本问题吧,前期配置非常麻烦,问题又多,问答区全部都是配置问题,说实话从建起项目到现在过了一个半小时我都还没解决,prettier 和commitlint 都没配置成功,也不想折腾了。反正这也无关后续项目建立吧,就是个规范,建议只是想看看教学视频自行练习的小伙伴可以和我一样先跳过吧。
不然这个教程也才看了第二集就问题一堆,何况这些都是环境配置问题而不是程式错误,都还没开始看到内容就花时间解决这些东西挺烦人的。
明白老师辛苦录制,但既然已经改版了就还是建议老师重新更新一下这部分的视频吧,不要让大家再花时间去做前面无意义的事,弄了半天再看到问答区回覆说已经改版,要照着新的文件做,但老实说老师提供的文件也是令人有看没有懂,例如prettier 配置第一步" 先按照视频中步骤配置完成",不是很明白应该要先配置到哪一步?还是照着视频正确的、错误的都先全部配置完再来看文档?谢谢老师
另外,安装 eslint-config-prettier 之后会报错 …
<html>TS7016: Could not find a declaration file for module 'react'. 'C:/Users/Adrian/Documents/Project/Programming/react-ts-jira/node_modules/react/index.js' implicitly has an 'any ' type.<br/>If the 'react' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react'
<html>TS7016: Could not find a declaration file for module 'react/jsx-runtime'. 'C:/Users/Adrian/Documents/Project/Programming/react-ts-jira/node_modules/react/jsx-runtime.js ' implicitly has an 'any' type.<br/>If the 'react' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/reaact'
写回答
3回答
-
Nolan
2021-04-27
已重录
00 -
Nolan
2021-04-01
明白,你说的有道理,这里确实很容易出问题,版本迭代很快。我会重新处理一下这里的视频
022021-04-01 -
扭纹柴
2021-04-01
git上面有源码呀,找到对应的课件源码再去安装试试。
00
相似问题