.eslintrc
author Ryo Kato <ryo_kato@hashedhyphen.com>
Sun, 03 Apr 2016 16:20:20 +0900
changeset 292524 afdcc508d7644bbe87de12f4435cd67538e225c8
parent 284522 ee408fd749cecb3eb67f11587ecb61a7025d559b
permissions -rw-r--r--
Bug 1255682 - Remove unnecessary t.step_func() from a chrome test r=hiro In promise chains, we don't have to use t.step_func. However, when there are callbacks in promise chains, assertions in the callbacks need wrapped in either t.step or t.step_func. If we use t.step_func, a variable scope might be divided. This can be a problem when an assertion uses local-scope variable (e.g. the callback in MutationObserver uses an assertion which take `changedAnimation`). Therefore, t.step is helpful in this case. (There no t.step_func we should remove in web-platform tests.) MozReview-Commit-ID: IiSizgCQjpG

{
  // When adding items to this file please check for effects on sub-directories.
  "plugins": [
    "mozilla"
  ],
  "rules": {
    "mozilla/import-globals": 1,
  },
  "env": {
    "es6": true
  },
}