Use and enforce "use strict"; for JS
This commit is contained in:
parent
686d49b578
commit
80016006c4
@ -45,5 +45,5 @@ rules:
|
||||
max-statements: [2, 30]
|
||||
no-bitwise: 2
|
||||
quote-props: [2, "always"]
|
||||
global-strict: 0
|
||||
strict: ["error", "global"]
|
||||
quotes: 0
|
||||
|
@ -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;
|
||||
|
@ -17,6 +17,7 @@
|
||||
* along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
document._qutebrowser_elements = [];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user