【问题标题】:React native project - git commit triggers lintReact 本机项目 - git commit 触发 lint
【发布时间】:2017-09-28 08:25:52
【问题描述】:

使用 react native 创建的项目运行良好,没有任何改变。我还更新到最新的 npm/node 等,但是每当我尝试使用命令git commit -am "test commit" 使用 git 提交时,我都会触发 react native 的 lint,最后说:

我拥有的 package.json 是: https://hastebin.com/nadohasayi.json

它运行良好,现在在项目中间,git 问题可能很严重。

有什么想法可能是错的吗?

【问题讨论】:

  • 看起来你已经在你的 package.json 中定义了一个 pre-commit 钩子
  • @QoP 你是对的,我现在注意到了。我应该删除它还是应该做什么?
  • 您要么删除它,要么修复 lint 错误:P
  • @QoP 请把它作为答案,我会标记它。非常感谢!
  • 不客气,伙计:-P

标签: reactjs react-native package.json


【解决方案1】:

您要么删除 package.json 中的 git 挂钩,要么修复 lint 错误。

【讨论】:

    猜你喜欢
    • 2016-10-11
    • 1970-01-01
    • 2016-07-11
    • 2022-01-11
    • 1970-01-01
    • 2014-09-11
    • 1970-01-01
    • 2020-01-12
    相关资源
    最近更新 更多