2016-01-20 00:49:39 +00:00
|
|
|
// Parent config file for all devtools xpcshell files.
|
2015-05-28 07:30:03 +00:00
|
|
|
{
|
2015-12-17 23:28:06 +00:00
|
|
|
"extends": [
|
|
|
|
"../testing/xpcshell/xpcshell.eslintrc"
|
|
|
|
],
|
2015-05-28 07:30:03 +00:00
|
|
|
"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,
|
2016-01-20 00:49:39 +00:00
|
|
|
"block-scoped-var": 0,
|
|
|
|
// Allow run_test to be unused in xpcshell
|
|
|
|
"no-unused-vars": [2, { "varsIgnorePattern": "run_test" }],
|
2015-05-28 07:30:03 +00:00
|
|
|
}
|
2015-12-17 23:28:06 +00:00
|
|
|
}
|