# Travis 测试因 eslint 而失败

**URL:** <https://meta.discourse.org/t/travis-tests-failing-due-to-eslint/163268>\
**Category:** Development\
**Created:** [2020 年9 月 7 日 15:27 UTC](https://meta.discourse.org/t/travis-tests-failing-due-to-eslint/163268 "2020-09-07T15:27:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

作者： ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
发布日期： [2020 年9 月 10 日 16:39 UTC](https://meta.discourse.org/t/travis-tests-failing-due-to-eslint/163268/2 "2020-09-10T16:39:56Z")

</div>

是的，`eslint` 不喜欢无所事事。这样做让它感觉更有用。

```plaintext
mkdir -p assets/javascripts/discourse
touch assets/javascripts/discourse/eslint.js.es6
git add assets/javascripts/discourse/eslint.js.es6
git commit -m 'try to make eslint not feel left out'
git push

```

不过，我认为这才是真正的解决方案：

[https://github.com/discourse/discourse/compare/master...pfaffman:patch-5](https://github.com/discourse/discourse/compare/master...pfaffman:patch-5)

---

_[View the full topic](https://meta.discourse.org/t/travis-tests-failing-due-to-eslint/163268)._
