Bug 1372427 - add rule "no-fallthrough" in switch cases. r=mattn.
MozReview-Commit-ID: 7kmc7Ze9v0J
--- a/toolkit/components/satchel/.eslintrc.js
+++ b/toolkit/components/satchel/.eslintrc.js
@@ -37,10 +37,11 @@ module.exports = {
"no-use-before-define": ["error", {
functions: false,
}],
complexity: ["error", {
max: 20,
}],
"dot-location": ["error", "property"],
"max-len": ["error", 100],
+ "no-fallthrough": "error",
},
};
--- a/toolkit/components/satchel/FormHistoryStartup.js
+++ b/toolkit/components/satchel/FormHistoryStartup.js
@@ -30,17 +30,16 @@ FormHistoryStartup.prototype = {
case "formhistory-expire-now":
FormHistory.expireOldEntries();
break;
case "profile-before-change":
FormHistory.shutdown();
break;
case "profile-after-change":
this.init();
- default:
break;
}
},
inited: false,
pendingQuery: null,
init() {