mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1330791 - Enable the no-native-reassign rule for eslint in /services and fix the associated error. r=markh
MozReview-Commit-ID: 65EsZGCJPMD --HG-- extra : rebase_source : 716697450e8506240a50a29508bf4943c37f48ef
This commit is contained in:
parent
2da3b5c9e4
commit
4bca295e61
@ -10,7 +10,6 @@ module.exports = {
|
||||
respective line in this file should be removed. */
|
||||
"consistent-return": "warn",
|
||||
"no-func-assign": "warn",
|
||||
"no-native-reassign": "warn",
|
||||
"no-nested-ternary": "warn",
|
||||
}
|
||||
};
|
||||
|
@ -73,7 +73,7 @@ function run_test() {
|
||||
|
||||
do_check_eq(Status.service, STATUS_OK);
|
||||
do_check_eq(Status.sync, SYNC_SUCCEEDED);
|
||||
for (name in Status.engines) {
|
||||
if (Status.engines.length) {
|
||||
do_throw("Status.engines should be empty.");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user