devtools/.eslintrc.xpcshell
author Botond Ballo <botond@mozilla.com>
Mon, 25 Apr 2016 14:28:46 -0400
changeset 300261 7f15db5b8c9eea2bac2c57b7c6d938b91753357a
parent 281540 bbdb71a5c1c002ae6c3c679f76e19705bdc6cd67
child 306494 eb5d2f565ba413cc423e35c93e1c1df67dfe1317
permissions -rw-r--r--
Bug 1267351 - Add lextab.py (generated during a reftest run) to .hgignore and .gitignore. r=glandium DONTBUILD MozReview-Commit-ID: cuTju8o92D

// Parent config file for all devtools xpcshell files.
{
  "extends": [
    "../testing/xpcshell/xpcshell.eslintrc"
  ],
  "rules": {
    // Allow non-camelcase so that run_test doesn't produce a warning.
    "camelcase": 0,
    // Allow using undefined variables so that tests can refer to functions
    // and variables defined in head.js files, without having to maintain a
    // list of globals in each .eslintrc file.
    // Note that bug 1168340 will eventually help auto-registering globals
    // from head.js files.
    "no-undef": 0,
    "block-scoped-var": 0,
    // Allow run_test to be unused in xpcshell
    "no-unused-vars": [2, { "varsIgnorePattern": "run_test" }],
  }
}