Use and enforce "use strict"; for JS

This commit is contained in:
Florian Bruhin 2016-08-09 09:55:14 +02:00
parent 686d49b578
commit 80016006c4
3 changed files with 4 additions and 1 deletions

View File

@ -45,5 +45,5 @@ rules:
max-statements: [2, 30]
no-bitwise: 2
quote-props: [2, "always"]
global-strict: 0
strict: ["error", "global"]
quotes: 0

View File

@ -17,6 +17,8 @@
* along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";
function _qutebrowser_scroll_to_perc(x, y) {
var elem = document.documentElement;
var x_px = window.scrollX;

View File

@ -17,6 +17,7 @@
* along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
*/
"use strict";
document._qutebrowser_elements = [];