Google Web Starter Kit - JShint在新的Javascript文件中出错

时间:2015-12-31 13:37:28

标签: javascript jshint

我正在使用Web Starter Kit,到目前为止我发现它非常好。然而,我有一个我无法解决的问题。

每当我创建一个新的.JS文件时,Gulp命令都会开始向我吐出错误。

对于此事:

 process.env.MAIL_URL = 'postmaster@sandbox757c0ce5316a4945a22181bb9b4060e9.mailgun.org:MyPassword@smtp.mailgun.org:587';

会导致这个:

<template name="ForgotPassword">
    <div class="modal fade" id="ForgotPassword" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
            <div class="modal-dialog" role="document">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">Recover password</h4>
              </div>
              <div class="modal-body">
                <form class="ForgotPasswordForm" method="post">
                    <p>email: <input id="forgotPasswordEmail" type="text" name="email" placeholder="email"></p> 
                    <button type="submit" class="btn btn-primary" value="Send">Submit</button>
                    <p>Not a member yet?<a href="#" class="js-register">Join us!</a></p>
                </form>
              </div>
              <div class="modal-footer">
                <!--<p><a href="#"  class="btn btn-primary">Login with Facebook</a></p>-->
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                <!--<button type="submit" value="Register" class="btn btn-primary js-confirm-register">Save changes</button>-->
              </div>
            </div>
          </div>
    </div>
</template>

<!-- template reset password -->

<template name="ResetPassword">
    {{#if resetPassword}}
    <form  class="resetPasswordForm" method="post">
        <input id="resetPasswordPassword" name="password" placeholder="New Password" type="password" >
        <input id="resetPasswordPasswordConfirm" name="password-confirm" placeholder="Confirm" type="password" >
        <input class="btn-submit" type="submit" value="Reset">
    </form>
    <!-- end #reset-password-form -->
    {{/if}}
</template>

我在这里做错了什么?

0 个答案:

没有答案