升级[email protected]之后,使用babel-eslint提交代码执行git-hooks eslint时候,报错:TypeError: Cannot read property 'range' of null from template-curly-spacing

可以尝试执行如下命令进行修复:

参考 https://github.com/babel/babel-eslint/issues/530

如果上面的方法不奏效,建议把@babel/*统一安装7.7.4版本的,避免版本交叉即可解决。

0 0 vote
Article Rating
Subscribe
提醒
guest
0 评论
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x